X-Base Bugtracking

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
000726xShunterPlug-in systempublic2011-08-29 11:182011-12-27 17:15
ReporterFrank 
Assigned ToxOR 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Versionv0.1 
Target Versionv0.2Fixed in Versionv0.2 
Summary000726: Make the "patch" command available to Plugins
DescriptionMake the OpenTTD Console command "patch" available to Plug-Ins to patch settings realtime in OpenTTD from a trigger (or feature in a plugin)
TagsNo tags attached.
SVN revision
Attached Files

- Relationships

-  Notes
User avatar (0000382)
xOR (administrator)
2011-12-27 17:15

r277

"patch" in OpenTTD is only an alias for the "setting" command. So internally the "setting" command is now called by xShunter, made available to plug-ins on the IOpenttdSession interface as Setting() method:
public void Setting(string settingName, string settingValue)

This method implicitly calls the new IOpenttdSession.RefreshSetting() method that queries the actual value from the console. The updated value can afterwards be retrieved as usual through IOpenttdConfig.GetSetting().


Copyright © 2000 - 2011 MantisBT Group
Time: 0.0746 seconds.
memory usage: 7,484 KB
Powered by Mantis Bugtracker