Thread Rating:
  • 28 Vote(s) - 2.57 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help overriding/hooking main module functions..
#10
Do you mean modifying the title of the combo box, or the string entries in the combo box?

The former is a bit nasty, as you would not be able to use a hardcoded string value without potentially breaking the bot for other localizations. You could find the entry in the string table for it (something like strings[gCurrentLanguage].comboBoxTitle) and change it for just the language you want to support (strings["us"].comboBoxTitle = "newTitle"). The string table is in minionlib/languages.lua. If you make any changes to strings you definitely need to cycle through all languages to ensure that the bot doesn't crash after your changes for any language...that's one of the few areas left in the code that will crash the bot 100% if it can't find the proper string.

The latter should be possible just by modifying the comboBoxVar_listitems with the new string you want. We do this all the time for markers, blacklist entries, etc. You should be able to find lots of examples where we refresh the combo box with new entries. Dunno if either of those is what you're looking for or not.
Reply
 


Messages In This Thread
RE: Need help overriding/hooking main module functions.. - by ferenz - 12-17-2013, 01:39 AM

Forum Jump:


Users browsing this thread: 7 Guest(s)

We help you win the game.

FFXIV Bot and More.

 

Products