Difference between revisions of "User:Tvol"
Jump to navigation
Jump to search
m (→Active Tree) |
m (→Scratch Pad) |
||
Line 35: | Line 35: | ||
===Abilities Template=== | ===Abilities Template=== | ||
− | {{Ability_(LW2) | + | {{Ability_(LW2)/Sandbox |
| s_name = Ability Name | | s_name = Ability Name | ||
| s_image = LWOfficers_AbilityTakeItDown.jpg | | s_image = LWOfficers_AbilityTakeItDown.jpg | ||
Line 63: | Line 63: | ||
===Active Tree=== | ===Active Tree=== | ||
{{Class Tree (LW2)/Sandbox | | {{Class Tree (LW2)/Sandbox | | ||
− | |Squaddie1= | + | |Squaddie1=<span id="ability"><!-- |
+ | --><span id="abilityImageContainer" style="position: relative; width: 38px; height: 38px;"><!-- | ||
+ | --><span id="abilityImage" style="width: 100%; height:100%;"><!-- | ||
+ | -->[[File:UIPerk_supression.png|38px|Area Suppression]]<!-- | ||
+ | --></span><!-- | ||
+ | --><span id="abilityInfoIcon" style="position: absolute; height: 18px; width: 18px; left: 28px; top: 12px;"><!-- | ||
+ | -->[[File:infoIcon.png|18px]]<!-- | ||
+ | --></span><!-- | ||
+ | --></span><br /><!-- | ||
+ | --><div id="abilityTextContainer"><!-- | ||
+ | --><div id="abilityName" style="font-weight: bold;">Area Suppression</div><!-- | ||
+ | --><div id="abilityDescription" style="font-style: italic;">Fire a barrage that pins down a target, grants reaction fire against it if it moves, restricts the use of many abilities, and imposes a -30 penalty to the target's aim.</div><!-- | ||
+ | --></div><!-- | ||
+ | --></span> | ||
|Squaddie2={{Haywire Protocol (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | |Squaddie2={{Haywire Protocol (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | ||
|Squaddie3={{Hack (LW2) | b_name = 1 | b_descr = 1 | b_info = 0}} | |Squaddie3={{Hack (LW2) | b_name = 1 | b_descr = 1 | b_info = 0}} | ||
Line 92: | Line 105: | ||
===Hardcopy Tree=== | ===Hardcopy Tree=== | ||
+ | Mouse-over [[File:InfoIcon.png|18px]] for more information. | ||
{| class="wikitable" style="vertical-align:top; text-align:center" width="100%" | {| class="wikitable" style="vertical-align:top; text-align:center" width="100%" | ||
+ | |- style="color:#7dc2d2; background-color:#17181a; vertical-align:center; font-size:130%;" | ||
+ | | style="width:10%; border-width: 0 2px 2px 0; border-color:#7dc2d2;"| '''Rank''' | ||
+ | | colspan="3" style="border-color:#7dc2d2; border-width: 0 0 2px 0" | '''Ability''' | ||
|- | |- | ||
− | ! width=" | + | ! style="border:none; color:#7dc2d2; background-color:#17181a;" | {{ #if: | {{SparkRank (LW2)|0|b_name=1}} | {{Rank (LW2)|0|b_name=1}} }} |
− | + | | width="30%" | <span id="ability"><span id="abilityImageContainer" style="position: relative; width: 38px; height: 38px;"><span id="abilityImage" style="width: 100%; height:100%;">[[File:UIPerk_supression.png|38px|Area Suppression]]</span><span id="abilityInfoIcon" style="position: absolute; height: 18px; width: 18px; left: 28px; top: 12px;">[[File:infoIcon.png|18px]]</span></span><br /><div id="abilityTextContainer"><div id="abilityName" style="font-weight: bold;">Area Suppression</div><div id="abilityDescription" style="font-style: italic;">Fire a barrage that pins down a target, grants reaction fire against it if it moves, restricts the use of many abilities, and imposes a -30 penalty to the target's aim.</div></div></span> | |
− | | | + | | width="30%" | {{Haywire Protocol (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} |
− | + | | width="30%" | {{Hack (LW2) | b_name = 1 | b_descr = 1 | b_info = 0}} | |
− | |||
− | | {{Haywire Protocol (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | ||
− | | {{Hack (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | ||
|- vertical-align="center" | |- vertical-align="center" | ||
− | + | | style="border:none; background-color:#17181a;" | | |
− | ! style="border-left:none; border-right:none;" | '''Medic''' | + | ! style="border-left:none; border-right:none; background-color:white;" | '''''Medic''''' |
− | ! style="border-left:none; border-right:none;" | | + | ! style="border-left:none; border-right:none; background-color:white;" | |
− | ! style="border-left:none; border-right:none;" | '''Hacker''' | + | ! style="border-left:none; border-right:none; background-color:white;" | '''''Hacker''''' |
|- | |- | ||
− | ! | + | ! style="border:none; color: #7dc2d2; background-color: #17181a;" | {{ #if: | {{SparkRank (LW2)|1|b_name=1}} | {{Rank (LW2)|1|b_name=1}} }} |
| {{Medical Protocol (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | | {{Medical Protocol (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | ||
| {{Cool Under Pressure (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | | {{Cool Under Pressure (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | ||
| {{Combat Protocol (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | | {{Combat Protocol (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | ||
|- | |- | ||
− | ! | + | ! style="border:none; color: #7dc2d2; background-color: #17181a;" | {{ #if: | {{SparkRank (LW2)|2|b_name=1}} | {{Rank (LW2)|2|b_name=1}} }} |
− | | {{Revival Protocol (LW2)| b_name = 1 | b_descr = 1 | b_info = | + | | {{Revival Protocol (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}} |
− | | {{Covering Fire (LW2)| b_name = 1 | b_descr = 1 | b_info = | + | | {{Covering Fire (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}} |
− | | {{Interference (LW2)| b_name = 1 | b_descr = 1 | b_info = | + | | {{Interference (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}} |
|- | |- | ||
− | ! | + | ! style="border:none; color: #7dc2d2; background-color: #17181a;" | {{ #if: | {{SparkRank (LW2)|3|b_name=1}} | {{Rank (LW2)|3|b_name=1}} }} |
− | | {{ | + | | {{Suppression (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}} |
+ | | {{Suppression (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}} | ||
| {{Suppression (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | | {{Suppression (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | ||
− | |||
|- | |- | ||
− | ! | + | ! style="border:none; color: #7dc2d2; background-color: #17181a;" | {{ #if: | {{SparkRank (LW2)|4|b_name=1}} | {{Rank (LW2)|4|b_name=1}} }} |
| {{Field Surgeon (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | | {{Field Surgeon (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | ||
| {{Ever Vigilant (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | | {{Ever Vigilant (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | ||
| {{Failsafe (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | | {{Failsafe (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | ||
|- | |- | ||
− | ! | + | ! style="border:none; color: #7dc2d2; background-color: #17181a;" | {{ #if: | {{SparkRank (LW2)|5|b_name=1}} | {{Rank (LW2)|5|b_name=1}} }} |
| {{Savior (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | | {{Savior (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | ||
| {{Sentinel (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | | {{Sentinel (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | ||
| {{Trojan (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | | {{Trojan (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | ||
|- | |- | ||
− | ! | + | ! style="border:none; color: #7dc2d2; background-color: #17181a;" | {{ #if: | {{SparkRank (LW2)|6|b_name=1}} | {{Rank (LW2)|6|b_name=1}} }} |
| {{Scanning Protocol (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | | {{Scanning Protocol (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | ||
| {{Kill Zone (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | | {{Kill Zone (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | ||
− | | {{Threat Assessment (LW2)| b_name = 1 | b_descr = 1 | b_info = | + | | {{Threat Assessment (LW2)| b_name = 1 | b_descr = 1 | b_info = 1}} |
|- | |- | ||
− | ! | + | ! style="border:none; color: #7dc2d2; background-color: #17181a;" | {{ #if: | {{SparkRank (LW2)|7|b_name=1}} | {{Rank (LW2)|7|b_name=1}} }} |
| {{Restoration (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | | {{Restoration (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | ||
| {{Full Override (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | | {{Full Override (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | ||
| {{Capacitor Discharge (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | | {{Capacitor Discharge (LW2)| b_name = 1 | b_descr = 1 | b_info = 0}} | ||
|} | |} |
Revision as of 10:00, 2 February 2017
TODO
Templates
- Apparently we have a CSS plugin. This allows for CSS to be changed on a per-page basis.
- Update Template:Ability (LW2) with element ids for completeness.
- Play around with this. It can probably be used to get better behaviour out of the info rollover, specifically having it break at newlines. (It may also be possible to enable specific behaviour on hover for those info icons.)
- Edit Template:Ability (LW2) and/or (probably and) all LW2 ability templates such that the info icon links to their respective info pages.
Addb_name
option to Template:Ability_(LW2).Test this change.
Once that's done, use bot and regex to run though all LW2 ability templates and convert. (Kill me.)- First regex attempt.
- Second
Final (formatted for Python):
".+File:(.+)\|32.+?\}\}\|(.+)]].+?\|(?:.+?''){1,3}(.+)\'\'(?:\n.+(\n.+)?(\n.+)?(\n.+)?(\n.+)?(\n.+)?){0,1}\}\}" "{{Ability_(LW2)\n| s_image = \1\n| s_caption = \2\n| s_name = \2\n| s_descr = \3\n| s_info = \4\5\6\7\8 \n| b_name = {{{ b_name }}}\n| b_descr = {{{ b_descr }}}\n| b_info = {{{ b_info }}}\n}}"
Images
- Fix categories and filenames: XCOM:EU abilities were extracted next to the base XCOM2 ability icons. These need to be moved to new filenames with an EU-specific prefix and have their categories updated to reflect the change. (Should be doable with some simple shell commands and Pywikibot via pairfiles function for page moves.)
- Explore possibility of extracting higher-quality images:
It may be that the actual targas in the upks are larger than those that were output when extracted by the Unreal Engine viewer tool used. Extract Startup.upk and compare.If the above is true, work on those files instead. Extract all class and rank icons as well.- The Texture2D files are actually significantly smaller than the output Targa files (~1.5kB to the ~3kB). A compressed PNG is only marginally smaller (about 900B) so I'm going to assume nothing funky is going on and these files are as big as they get. Closer inspection of screenshots from the game also suggest to me that there is some enlargement of the texture files in-game to fit the UI (their edges look just a little blurred on the edges). Too bad.
- Fix image colors. This means first reconverting from targa to png without transparency colour replacement (that was a dumb idea anyway).
- Next step, pass through color filter. Be sure to not be an idiot this time and get the colours right (MSPaint lies and gives false colour data from its eyedropper tool; "Lum: 175" my ass), including separating the psi-powers and colouring those correctly too.
- Lastly get a Photoshop action together plus a nice border image (the in-game ones appear to be a coloured line with a black stroke) and overlay it. This should be a barrel of joy.
Upload ability icons (batch).Photoshop and upload SPARK rank iconsPhotoshop and re-upload soldier rank icons
Scratch Pad
Abilities Template
Text to test
Area Suppression
Fire a barrage that pins down a target, grants reaction fire against it if it moves, restricts the use of many abilities, and imposes a -30 penalty to the target's aim.
inline display
Active Tree
Mouse-over for more information.
Hardcopy Tree
Mouse-over for more information.