Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scn MCMScript
- ; Initialization
- int masterIndex
- ref modList
- int activeMod
- ; MCM vars
- int activeOption
- int activeSubmenu
- float value
- int mouseoverOption
- int iTemp
- float fTemp
- int menuSection
- ;-------------------------------------------------------------------------
- Begin GameMode
- if getGameRestarted == 1
- if isModLoaded "The Mod Configuration Menu.esp" == 1
- set masterIndex to getModIndex "The Mod Configuration Menu.esp"
- set modList to buildRef masterIndex 2790
- listAddForm modList <ModItem>
- endif
- endif
- End
- ;-------------------------------------------------------------------------
- Begin MenuMode 1013
- set activeMod to getMCMFloat 0 0 "_ActiveMod"
- if activeMod == 0
- return
- endif
- if activeMod != getSourceModIndex <ModItem>
- return
- endif
- set activeOption to getMCMFloat 0 0 "_ActiveOption"
- set value to getMCMFloat 0 0 "_Value"
- if GetUIFloat "StartMenu/MCM/*:5/SubMenu1/_enable" == 0
- setUIFloat "StartMenu/MCM/*:5/SubMenu1/_enable" 1
- setUIString "StartMenu/MCM/*:5/SubMenu1/text/string" "Submenu Example"
- setUIString "StartMenu/MCM/*:8/SubTitle1/string" "Submenu Example"
- endif
- set activeSubmenu to GetMCMFloat 0 0 "_ActiveSubMenu"
- ;--------------------------------------------------
- if getMCMFloat 0 0 "_Reset" != 0 ; 1 - RESET
- setMCMFloat 0 0 "_Reset" 0
- ;--------------------------------------------------
- elseif getMCMFloat 0 0 "_Default" != 0 ; 2 - DEFAULT
- setMCMFloat 0 0 "_Default" 0
- setMCMFloat 0 0 "_Reset" 1
- set menuSection to 2
- ;--------------------------------------------------
- elseif getMCMFloat 0 0 "_NewValue" != 0 ; 3 - NEW VALUE
- setMCMFloat 0 0 "_NewValue" 0
- setMCMFloat 0 0 "_Reset" 1
- set menuSection to 3
- ;--------------------------------------------------
- elseif getMCMFloat 0 0 "_ShowList" == 1 ; 4 - SHOW LIST
- setMCMFloat 0 0 "_ShowList" 2
- set menuSection to 4
- ;--------------------------------------------------
- elseif getMCMFloat 0 0 "_ShowScale" == 1 ; 5 - SHOW SCALE
- setMCMFloat 0 0 "_ShowScale" 2
- set menuSection to 5
- ;--------------------------------------------------
- elseif getMCMFloat 0 0 "_DefaultScale" != 0 ; 6 - DEFAULT SCALE
- setMCMFloat 0 0 "_DefaultScale" 0
- setMCMFloat 0 0 "_ShowScale" 2
- set menuSection to 6
- endif
- ;--------------------------------------------------
- if mouseoverOption != GetUIFloat "StartMenu/MCM/*:1/_optionID" ; 7 - MOUSE-OVER
- set mouseoverOption to GetUIFloat "StartMenu/MCM/*:1/_optionID"
- set menuSection to 7
- if mouseoverOption != 0
- setMCMFloat 9 0 "visible" 1
- elseif activeSubMenu != 0
- setMCMFloat 9 0 "visible" 0
- endif
- endif
- End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement