UIElement.RegisterSliderCallback (Civ5 API)
From Civilization Modding Wiki
Jump to navigationJump to search
This page is a part of the Lua and UI Reference (Civ5).
This method is declared by Slider. This is an instance method, invoke it with a colon. |
Usage
void UIElement:RegisterSliderCallback((void func(int fValue, ActionType void1)) OnMinorCivsSlider)
Parameters
OnMinorCivsSlider: No description available.
Source code samples
Redundant occurences have been removed.
AdvancedSetup.lua
UI/FrontEnd/GameSetup/AdvancedSetup.lua
0935
|
Controls.MinorCivsSlider:RegisterSliderCallback( OnMinorCivsSlider ); |
OptionsMenu.lua
UI/Options/OptionsMenu.lua
0446
|
Controls.MusicVolumeSlider:RegisterSliderCallback( OnUIVolumeSliderValueChanged ); |
0447
|
Controls.EffectsVolumeSlider:RegisterSliderCallback( OnUIVolumeSliderValueChanged ); |
0448
|
Controls.SpeechVolumeSlider:RegisterSliderCallback( OnUIVolumeSliderValueChanged ); |
0449
|
Controls.AmbienceVolumeSlider:RegisterSliderCallback( OnUIVolumeSliderValueChanged ); |
0478
|
Controls.Tooltip1TimerSlider:RegisterSliderCallback(Tooltip1TimerSliderChanged) |
0479
|
Controls.Tooltip1TimerSlider:SetValue(OptionsManager.GetTooltip1Seconds()/1000); |
ReplayViewer.lua
UI/InGame/Popups/ReplayViewer.lua
1194
|
Controls.TurnSlider:RegisterSliderCallback(OnTurnSliderValueChanged); |
UITestMenu.lua
UI/FrontEnd/UITestMenu.lua
0086
|
Controls.BigSlider:RegisterSliderCallback( SliderUpdate ); |
0090
|
Controls.SmallSlider:RegisterSliderCallback( SliderUpdate ); |
The initial version of this page was created by the Civ5 API Bot, see the Civ5 API Reference FAQ. Some of the texts come from the 2kgames' wiki and most of code samples are copyrighted to Firaxis.
Functions' signatures were either copied from the 2kgames' wiki, or infered from the Lua source files and the binaries. Errors are possible.
Contributors may find help in the Contributors guide to the Civ5 API.