diziet
Active Member
- Messages
- 541
I've posted in the F4 modders forum, I had some interesting responses but I still have a problem so I thought I'd try here:
I have used textFromStringProperty thus in my config.json:
{
"id": "speedmult_display",
"type": "text",
"help": "Displays the resultant speed multiplier.",
"textFromStringProperty": {
"form": "dz_F4_little_things.esp|0800",
"scriptName": "dz_F4_little_things_quest_script",
"propertyName": "multiplier_display"
}
},
the property 'multiplier_display' is a string that includes the current speedmult actorvalue.
the following function:
Function OnMCMSettingChange(string modName, string id)
If (modName == "dz_F4_little_things") ; if you registered with OnMCMSettingChange|MCM_Demo this should always be true
If (id == "change_speedmult")
debug.trace("DF4LT: change_speedmult value was changed!")
MCM.RefreshMenu()
EndIf
EndIf
debug.trace("DF4LT: MCM setting changed")
MCM.RefreshMenu()
EndFunction
fires when I change the speedmult value in my MCM menu, but the MCM.RefreshMenu line doesn't update the display of "id": "speedmult_display"
if I exit the menu to the game and go back then the updated value of 'multiplier_display is shown.
Does anyone know if I can get this to work?
diziet
I have used textFromStringProperty thus in my config.json:
{
"id": "speedmult_display",
"type": "text",
"help": "Displays the resultant speed multiplier.",
"textFromStringProperty": {
"form": "dz_F4_little_things.esp|0800",
"scriptName": "dz_F4_little_things_quest_script",
"propertyName": "multiplier_display"
}
},
the property 'multiplier_display' is a string that includes the current speedmult actorvalue.
the following function:
Function OnMCMSettingChange(string modName, string id)
If (modName == "dz_F4_little_things") ; if you registered with OnMCMSettingChange|MCM_Demo this should always be true
If (id == "change_speedmult")
debug.trace("DF4LT: change_speedmult value was changed!")
MCM.RefreshMenu()
EndIf
EndIf
debug.trace("DF4LT: MCM setting changed")
MCM.RefreshMenu()
EndFunction
fires when I change the speedmult value in my MCM menu, but the MCM.RefreshMenu line doesn't update the display of "id": "speedmult_display"
if I exit the menu to the game and go back then the updated value of 'multiplier_display is shown.
Does anyone know if I can get this to work?
diziet