-
Notifications
You must be signed in to change notification settings - Fork 525
Conversation
schwiti6190
commented
Apr 23, 2021
•
edited
Loading
edited
- small action event improvements.
- added a global setting to disable action event texts.
- fixes Question: Shovel Mode #7051, fixes Mode 3 Save pipe position #6810, fixes Mode 3 : Overloader does not brake at the overload point (to high speed when approach waitpoint ?) #6611
- added the possibility to print variables to drifferent xml files
- added printGlobalCpVariable()
ActionEventsLoader.lua
Outdated
---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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would textAlwaysVisible
describe textVisibilityNeeded
better what it is for?
base.lua
Outdated
---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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is confusing, if firstRun is true, I'd think it is the first run, but the opposite seems to be the case. I'd recommend renaming it to postInitDone
or something more descriptive.
config/ActionEventsConfig.xml
Outdated
@@ -16,6 +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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very confusing description (maybe it is due to my age :) but disabling forbidden is false is just too much boolean logic for me...