diff --git a/ActionEventsLoader.lua b/ActionEventsLoader.lua index 66203fecb..630de5be9 100644 --- a/ActionEventsLoader.lua +++ b/ActionEventsLoader.lua @@ -10,7 +10,7 @@ ActionEventsLoader.actionEventAttributes = { {name = 'callbackState', getXmlFunction = getXMLInt}, {name = 'isDisabledCallbackFunc', getXmlFunction = getXMLString}, {name = 'text', getXmlFunction = getXMLString}, - {name = 'textVisibilityNeeded', getXmlFunction = getXMLBool}, + {name = 'textAlwaysVisible', getXmlFunction = getXMLBool}, } ---All the setting action events attributes @@ -22,7 +22,7 @@ ActionEventsLoader.settingActionEventAttributes = { {name = 'callbackState', getXmlFunction = getXMLInt}, {name = 'isDisabledCallbackFunc', getXmlFunction = getXMLString}, {name = 'text', getXmlFunction = getXMLString}, - {name = 'textVisibilityNeeded', getXmlFunction = getXMLBool}, + {name = 'textAlwaysVisible', getXmlFunction = getXMLBool}, } ---String to class reference, only for global classes. @@ -331,7 +331,7 @@ end ---Needs the action event text to be visible? ---@param table actionEventData from the config xml function ActionEventsLoaderUtil.isActionEventTextVisible(actionEventData) - return courseplay.globalSettings.showActionEventsTexts:get() or actionEventData.textVisibilityNeeded + return courseplay.globalSettings.showActionEventsTexts:get() or actionEventData.textAlwaysVisible end ---Is the action event disabled ? diff --git a/base.lua b/base.lua index a86f6bda2..5c3fa5ec3 100644 --- a/base.lua +++ b/base.lua @@ -585,12 +585,12 @@ function courseplay:onUpdate(dt) self.cp.infoText = nil end - if self.cp.firstRun == nil then + if self.cp.postInitDone == nil then if self.cp.driver then ---Post init function, as not all giants variables are ---set correctly at the first courseplay:setAIDriver() call. self.cp.driver:postInit() - self.cp.firstRun = true + self.cp.postInitDone = true end end diff --git a/config/ActionEventsConfig.xml b/config/ActionEventsConfig.xml index 59c329b42..ad592957b 100644 --- a/config/ActionEventsConfig.xml +++ b/config/ActionEventsConfig.xml @@ -16,7 +16,7 @@ isDisabledCallbackFunc: is used to disable a action event after a action event refresh or on load. callbackState: isDisabledCallbackFunc parameter, this is an int! text: is the action event text, by default it returns courseplay:loc(name), where 'name' is the previous defined action event name. - textVisibilityNeeded: Is disabling action event text forbidden ? (default: false) + textAlwaysVisible: Should the action event texts always be visible, regardless of settings, etc.. --> @@ -33,17 +33,17 @@ - - - - - - - - - - - + + + + + + + + + + + @@ -56,7 +56,7 @@ isDisabledCallbackFunc: is used to disable a action event after a action event refresh or on load optional, default is setting:isDisabled(). callbackState: isDisabledCallbackFunc parameter, this is an int! text: is the action event text, by default it returns courseplay:loc(name), where 'name' is the previous defined action event name. - textVisibilityNeeded: Is disabling action event text forbidden ? (default: false) + textAlwaysVisible: Should the action event texts always be visible, regardless of settings, etc.. -->