Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scn DarnMCMScript
- int iMaster
- int iOption
- int iSubMenu
- float fValue
- reference rList
- begin GameMode
- if GetGameRestarted
- if IsModLoaded "The Mod Configuration Menu.esp"
- set iMaster to GetModIndex "The Mod Configuration Menu.esp"
- set rList to BuildRef iMaster 2790
- ListAddForm rList [Your item from Step 4 above]
- endif
- endif
- end
- begin MenuMode 1013
- if IsModLoaded "The Mod Configuration Menu.esp"
- else
- Return
- endif
- if GetUIFloat "StartMenu/MCM/_ActiveMod" == GetModIndex "[Your Mod]"
- set iOption to GetUIFloat "StartMenu/MCM/_ActiveOption"
- set fValue to GetUIFloat "StartMenu/MCM/_Value"
- if GetUIFloat "StartMenu/MCM/*:5/SubMenu1/_enable" == 0
- SetUIFloat "StartMenu/MCM/_ActiveSubMenu" [number]
- SetUIFloat "StartMenu/MCM/*:5/SubMenu1/_enable" 1
- SetUIString "StartMenu/MCM/*:5/SubMenu1/text/string" "Sub Menu 1"
- SetUIString "StartMenu/MCM/*:8/SubTitle1/string" "Example Sub Menu 1"
- SetUIFloat "StartMenu/MCM/*:5/SubMenu2/_enable" 1
- SetUIString "StartMenu/MCM/*:5/SubMenu2/text/string" "Sub Menu 2"
- SetUIString "StartMenu/MCM/*:8/SubTitle2/string" "Example Sub Menu 2"
- endif
- set iSubMenu to GetUIFloat "StartMenu/MCM/_ActiveSubMenu"
- if iSubMenu == 1
- Call SubMenu1Function iOption fValue
- elseif iSubMenu == 2
- Call SubMenu2Function iOption fValue
- elseif iSubMenu == 3
- Call SubMenu3Function iOption fValue
- elseif iSubMenu == 4
- Call SubMenu4Function iOption fValue
- endif
- endif
- end
- scn SubMenu1Function
- int iOption
- int iTemp
- int iMouseover
- float fValue
- float fTemp
- BEGIN Function {iOption fValue}
- if GetUIFloat "StartMenu/MCM/_Reset" ;1 - RESET
- SetUIFloat "StartMenu/MCM/_Reset" 0
- SetUIFloat "StartMenu/MCM/*:1/_columns" [number]
- elseif GetUIFloat "StartMenu/MCM/_Default" ;2 - DEFAULT
- SetUIFloat "StartMenu/MCM/_Default" 0
- SetUIFloat "StartMenu/MCM/_Reset" 1
- elseif GetUIFloat "StartMenu/MCM/_NewValue" ;3 - NEW VALUE
- SetUIFloat "StartMenu/MCM/_NewValue" 0
- SetUIFloat "StartMenu/MCM/_Reset" 1
- elseif GetUIFloat "StartMenu/MCM/_ShowList" == 1 ;4 - SHOW LIST
- SetUIFloat "StartMenu/MCM/_ShowList" 2
- elseif GetUIFloat "StartMenu/MCM/_ShowScale" == 1 ;5 - SHOW SCALE
- SetUIFloat "StartMenu/MCM/_ShowScale" 2
- elseif GetUIFloat "StartMenu/MCM/_DefaultScale" ;6 - DEFAULT SCALE
- SetUIFloat "StartMenu/MCM/_DefaultScale" 0
- SetUIFloat "StartMenu/MCM/_ShowScale" 2
- endif
- if iMouseover != GetUIFloat "StartMenu/MCM/*:1/_optionID" ;7 - MOUSE-OVER
- set iMouseover to GetUIFloat "StartMenu/MCM/*:1/_optionID"
- if iMouseover
- SetUIFloat "StartMenu/MCM/MCM_Info/visible" 1
- if iMouseover == 1
- else
- SetUIFloat "StartMenu/MCM/MCM_Info/visible" 0
- endif
- else
- SetUIFloat "StartMenu/MCM/MCM_Info/visible" 0
- endif
- endif
- END
Advertisement
Add Comment
Please, Sign In to add comment