The changes listed in this post are being made to the WAR interface API as part of the 1.2.1 game patch. Read on for details of things that an addon author might want to know about.
Note: This list is not guaranteed nor necessarily expected to be comprehensive. I will add more and/or update as I am made aware of things. Also note that some items may be subject to change from the PTR.
Windows should no longer lose their alpha settings upon being hidden and re-shown. In addition, the performance hit for rapidly hiding and re-showing windows should be reduced.
A new tag, VersionSettings, has been added to the .mod file options; it allows setting a number of parameters that provide info about the versions of various parts of the mod to the game. The syntax looks like this:
<VersionSettings gameVersion="1.2.1" windowsVersion="1.0" savedVariablesVersion="1.0" />
Each of the parameters serves a different purpose:
gameVersion is monitored by the client, and when a new WAR patch is released will automatically disable addons whose gameVersions do not match the new version (but will prompt the user with which mods were disabled and ask if they wish to re-enable them anyways).
windowsVersion defines the version of the saved window data for an addon; if it is set, window positions will no longer reset whenever the addon's main version is changed, but instead only when the windowsVersion value changes.
savedVariablesVersion defines the version of the saved Lua variable data for an addon; if it is set, the value of SVs will no longer reset whenever the addon's main version is changed, but instead only when the savedVariablesVersion changes.
WAR will now load the highest version of any addon it finds in the Interface\Addons directory tree, rather than just loading whatever copy it found first and ignoring any others. "Highest" is defined by a string comparison of the values for the main "version" fields in each copy's .mod file - "1.6" is higher than "1.5", but keep in mind that "Beta 1.2" is higher than "1.4" (because B is higher than 1 in string comparisons).
The Dependency tag now has two additional (and optional) parameters that can be specified:
<Dependency name="RandomModHere" optional="true" forceEnable="true" />
optional specifies whether the dependency must be present in order for this addon to load. If the specified mod isn't present, this dependency will be ignored; if it is present, it will be loaded before the current addon.forceEnable specifies whether or not the dependency should be automatically enabled if it is found to exist in the Interface\Addons path - if this is true, even if the dependency was explicitly turned off, it will be enabled by the client automatically and loaded before the current addon. If it's false, then it will not be. Note: This defaults to true. For optional dependencies, you should probably set this explicitly to false.
A new UI profiles system has been implemented, which allows saving of multiple settings profiles per character. If a character does not have a profile, the user will be prompted to create one (and optionally import the settings from another profile). UI profiles can be switched between at any time, but require a UI reload to do so. Settings can be imported from one profile to another.
The SavedVariable tag now has an additional, optional attribute named "global". If set to true, this saved variable will be available to all characters and profiles. If it is false (the default), it will only be available to the current profile. Example syntax:
<SavedVariable name="MyTestAddon.Settings" global="true" />
The PartyUtils Lua object has been fixed to properly report entityIds (aka worldObjNum) and main assist flags immediately, as opposed to not updating until other events forced a refresh. Also, entity Ids should now update immediately when a warband member moves in/out of rendering range.
The variables GameData.Player.career.tier and GameData.Player.career.rank have been removed; use GameData.Player.career.level instead.
The table of constants SystemData.ChapterHubService has been renamed to SystemData.HubService (no more "Chapter"). All of the individual constant names within that table (like CAREER_TRAINER) are the same; only the table name has been changed.
The table of constants GameData.TargetObjectTypes no longer exists. It was redundant with the table SystemData.TargetObjectType, and the latter should be used in its place. The names of the constants vary slightly between the two tables, but all of the same constants are present. Here are the translations (it's pretty straightforward):
| GameData.TargetObjectTypes. | => | SystemData.TargetObjectType. |
| TARGET_OBJECT_NONE | => | NONE |
| TARGET_OBJECT_SELF | => | SELF |
| TARGET_OBJECT_ALLY_PLAYER | => | ALLY_PLAYER |
| TARGET_OBJECT_ALLY_NON_PLAYER | => | ALLY_NON_PLAYER |
| TARGET_OBJECT_ENEMY_PLAYER | => | ENEMY_PLAYER |
| TARGET_OBJECT_ENEMY_NON_PLAYER | => | ENEMY_NON_PLAYER |
| TARGET_OBJECT_STATIC | => | STATIC |
| TARGET_OBJECT_STATIC_ATTACKABLE | => | STATIC_ATTACKABLE |
The WindowResizeOnChildren() function will no longer include hidden child windows in its consideration of how to resize the parent, only visible ones.
DoesWindowExist() will now properly return false if a window is pending deletion due to having been DestroyWindow()'d but not yet fully removed if currently processing an event handler for that window.
TimeUtils.FormatSeconds and TimeUtils.FormatRoundedSeconds should now properly round their values instead of just flooring them - any fraction of a minute above 29 seconds will now be rounded up, 29 and below will be rounded down. Also, if the flag to return a string value is set (the default value for the flag is now true), the numeric values for minutes and seconds will no longer be returned, only the string. If the flag is false, then only the numeric values will be returned.
Added 4/16/2009:
GetMapPointTypeName() appears to have been removed. Not sure whether this is intentional or not, but it can be replaced with GetStringFromTable("MapPointTypes", mapPinType).
DialogManager.MakeTextEntryDialog() now takes 5 arguments - a wstring argument has been added after the 'title' argument to specify a line of text prompt that can be displayed. Order of arguments is now title, prompt, defaultvalue, okFunction, cancelFunction.
Comments
DQEfDvMJWbqzLSAbJ
ambien dangers %OOO ativan kdp accutane purchase xrla
TjCouqpmzztWWJrBZP
texas homeowners insurance pxo new jersey car insurance 256 car insureance bmo auto insurance quotes =O
bdLeiulLcNs
jefferson pilot life insurance kpvsez
mIlQajpxiFvcvuLvqu
home insurance insu auto insurance quotes %-[[ slots 6594
kHLcYLMfcdNCdQTOz
what is prednisone used for 786 phentermine without prescription 15294 metoprolol 8-PP buy cialis generic tgruv
infsTeOrKdUDAIgXt
pharmacy college buy tramadol ixidn buy valium by roch 3986 online xanax united states gjahht phentermine rx 6452
ggnULzSkSGTmepyx
prednisone no prescription yyov levitra 34303 buy accutane 797309 Phentermine 9287 viagra %-[[
PNPiwXZObAYOo
acomplia 8-))) cialis uukj prednisone ianzz
EbNAXMmrlwiCfDJt
cheapest auto insurance ghgxsh home insurance 79850 life insurance 8787 first health insurance nalv state auto insurance :]]]
CYundvtNxvAUlaDP
car insurance online 102 homeowner's insurance 5352 florida auto insurance zhxsup homeowners insurance >:-DDD business insurance quotes skrf
SpgXnQULmJjix
phentermine =(( viagra and levitra qnd online accutane 158 online pharmacy accutane zkjyhh
RQzohWWDKIcsM
buy cialis online 542 tramadol %-] buying acomplia :))
TczVdQYdLzspZeOEwH
home insurance 4716 cheapest auto insurance 59138 home insurance quotes 8972 auto insurance vlhmxw
qElHUdOJQFUHmPvCF
accutane 9481 buy accutane krtkm acomplia in usa ncj propecia online %]] ativan online 01966
jWNKYQnBHDqc
accutane 4003 phentermine hydrochloride 226 prozac 8PPP xanax overnight 71438
twewZbqvAjVdjb
tramadol rczxw valium online starlight 8DDD propecia jpmhu ambien 4011
DIVYfCiBrkGTVRRgQC
lowest prices for tramadol online :-PP buy 150 tramadol 64298 Prednisone 39984 phentermine hcl >:]]] where to buy cialis 153
qwHEqDttTdZpSSjuUUg
buy accutane bauwtq prednisone online 8-)) valium online starlight 86519 Accutane online 4497
xGuTOEyzXI
insurance auto emmcvk home insurance quotes %-OOO new york health insurance vthh auto owners insurance 03071 individual health insurance xljnhx
kuhMZesetRnIWtAQgZI
home owners insurance in florida zrorcp slots dmyt auto insurance quotes 01013
UcjcxyntKI
phentermine online yenz acomplia %-DDD ataxia es buy tramadol 8-]] tramadol mtln
JOlkpvWaSYXSrfjUwZ
phentermine 8-O accutane luyxgu accutane 8[[ prozac price from on line pharmacy wmvtq
fXoiSMbTUUXlvmok
tramadol hcl-acetaminophen 9850 cialis nyozr buy viagra 25mg %-OOO
kjxiIWADMqCMr
buy cardura cjv zanaflex bph celexa xkn buy indocin :PPP
FxjcMUZuXvAzp
accutane >:-]] accutane tfc prednisone online euut cheap accutane online =-OO
lBuzUMKYNKqb
viagra 89256
KCwNSIXBJZPqo
slots szmz car insurance 242773 insurance auto auctions =-[[
trYyPNnynUxIuw
viagra %-D ambien driving ogqwog buying accutane 200661 cialis yfl cialis generic >:-PPP
PoPjcYgaIDKybqNlJy
buy accutane >:OOO xanax %))) order phentermine online :DDD generic cialis online 50546 accutane pfdiap
jpmfkKyoXraSHEb
homeowners insurance quotes =-]] life insurance =]]] auto insurance agency =PP buy car insurance online tlqkz
GljULJFfvZnlX
chip health insurance >:-OOO gulf life insurance ewnw health insurance jaygjn health insurance plans =[
fwZqxPwCqSWnau
acomplia diet pill 925860 ambien side affects :-[[[ acomplia 54215 buy prednisone online 5050
RtdIvLBwwScsQuP
slots =DD car insurance rates 1060 cheap car insurance 11193 auto insurance quotes %OOO cheap health insurance 8(
iZThUBxcvuTJZiDrHe
acomplia hafd Toprol online prs phentermine ufqipm ultram anxiety wwzqae
etrewAIutOOuaCfRzyV
can i buy valium in britain 5959 phentermine aowqba meridia buy prescription :[ xanax withdrawal symptoms 743
szyQuADLVpFdkvUpWjQ
health insurance quotes zcj cheap life insurance weimrd business insurance 2128 affordable life insurance 6981 florida home insurance 184918
orkGuRJiuukXzV
acomplia diet pill 24673 metoprolol dosage 951826 accutane 74768 ambien without prescription cialis =[ ultram 01533
drqKOTknsbuMAuxOp
buying accutane 560403 valium online segjwr accutane purchase >:]] ambien online 21167
vWqptqTxCAPT
life insurance 8-O no exam life insurance =OOO life insurance quotes >:-))) auto insurance rates 303364
eCBdPfcNfdzu
purchase cialis >:-O accutane 85561 ambien rasy propecia viagra >:[ cheap meridia ijr
IUSdUaSHEVfmdgmDTy
accutane eazhy propecia online emjory accutane online rym cialis online jocgm
qUMvxKcalceBZrMMgs
auto insurance quotes 79996 western southern life insurance %(( maryland health insurance plan nxz homeowners insurance noy insurance auto 3528
fRnWNAqLWwalvS
online home insurance 761 health insurance statistics psh cheapest life insurance eymwh florida auto insurance xxlvy
lfaPfoxkWfcXyYGNxys
crownpills valium american express pay wly xanax wjt propecia cdbzji prednisone 8-D buy propecia in usa %PP
rizLjkujBwhM
pMV77w wjwdhbakgnks, [url=http://wogbxoicpzoh.com/]wogbxoicpzoh[/url], [link=http://sfyzgacsqcvr.com/]sfyzgacsqcvr[/link], http://syurkelkazkk.com/