X33STORM Posted December 28, 2018 Posted December 28, 2018 (edited) So i've been having a few UI problems, and i'm trying to narrow down if any of my customizations are at fault. I've been using this edit for a while, it works as it should, but not sure if it leaves some code with nowhere to go. It just removes the "Damage Taken", so only "Damage Done" shows, saving up much needed UI space. I just commented out the instances of "OwnLog" & "DamageMeterOwnRow" in DamageMeter.xml. DamageMeter.xml: <ui> <css name="$TextDefault"> <fontFamily value="$WWSDefaultFont"/> <mouseEnabled value="false"/> <mouseChildren value="false"/> <fontSize value="15"/> <dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/> <selectable value="false"/> <textColor value="0xEEEEEE"/> <multiline value="false"/> </css> <css name="$TextDefaultBold"> <fontFamily value="$WWSDefaultFontBold"/> <mouseEnabled value="false"/> <mouseChildren value="false"/> <fontSize value="15"/> <dropShadowFilter value="1 90 0x08222a 0.5 2.0 2.0 1.0 2"/> <selectable value="false"/> <textColor value="0xEEEEEE"/> <multiline value="false"/> </css> <block className="DamageMeterEnemyRow"> <style> <height value="22px"/> </style> <block> <style> <width value="100%"/> <flow value="horizontal"/> </style> <block type="text"> <styleClass value="$TextDefault"/> <bind name="text" value="(subtype=='Destroyer'?'3':subtype=='Cruiser'?'2':subtype=='Battleship'?'1':'0')"/> <style> <width value="24"/> <height value="24"/> <fontFamily value="$WoWsSymbol"/> <marginLeft value="5px"/> <fontSize value="16"/> </style> </block> <block type="text"> <styleClass value="$TextDefault"/> <bind name="text" value="(tr(shipNameIDS))"/> <style> <width value="90px"/> </style> </block> <block type="text"> <!-- shellType --> <styleClass value="$TextDefault"/> <bind name="text" value="(ammoType == 'AP') ? 'd' : (ammoType == 'HE') ? 'e' : ((ammoType == 'torpedo') ? 'J': ammoType)"/> <style> <width value="24"/> <height value="24"/> <fontFamily value="$WoWsSymbol"/> <marginLeft value="0px"/> <fontSize value="18"/> </style> </block> <block type="text"> <!-- damage --> <styleClass value="$TextDefault"/> <styleClass value="$FontSizeSmall"/> <bind name="text" value="damage"/> <style> <width value="50px"/> </style> </block> <block type="text"> <!-- damage --> <styleClass value="$TextDefault"/> <styleClass value="$FontSizeSmall"/> <bind name="text" value="' (+' + lastDamage + ')'"/> <style> <width value="70px"/> </style> </block> </block> </block> <!--block className="DamageMeterOwnRow"> <style> <height value="22px"/> </style> <block> <style> <width value="100%"/> <flow value="horizontal"/> </style> <block type="text"> <styleClass value="$TextDefault"/> <bind name="text" value="(subtype=='Destroyer'?'3':subtype=='Cruiser'?'2':subtype=='Battleship'?'1':'0')"/> <style> <width value="24"/> <height value="24"/> <fontFamily value="$WoWsSymbol"/> <marginLeft value="5px"/> <fontSize value="18"/> </style> </block> <block type="text"> <styleClass value="$TextDefault"/> <bind name="text" value="(tr(shipNameIDS))"/> <style> <width value="90px"/> </style> </block> <block type="text"> <styleClass value="$TextDefault"/> <bind name="text" value="(ammoType == 'AP') ? 'd' : (ammoType == 'HE') ? 'e' : ((ammoType == 'torpedo') ? 'J': ammoType)"/> <style> <width value="24"/> <height value="24"/> <fontFamily value="$WoWsSymbol"/> <marginLeft value="0px"/> <fontSize value="18"/> </style> </block> <block type="text"> <styleClass value="$TextDefault"/> <styleClass value="$FontSizeSmall"/> <bind name="text" value="damage"/> <style> <width value="50px"/> </style> </block> </block> </block--> <block className="DamageMeter"> <bind name="controller" value="com.monstrofil.controllers.WindowsController"/> <bind name="appear" value="'addedToStage'; 0.6; 0; {alpha: 0}; {alpha: 1}"/> <block className="DamageMeterView"> <bind name="visible" value="movie == 'Battle'"/> <bind name="controller" value="com.monstrofil.controllers.DamageMeterController"/> <style> <position value="absolute"/> </style> <block className="EnemyLog"> <!-- --> <bind name="collectionDH" value="CC.userPrefs; 'userPrefsCollection'"/> <bind name="entityDH" value="'userPrefsEntity'; userPrefsCollection[0].id"/> <bind name="watchDH" value="'userPrefs'; ['userPrefsEntity.userPrefs.evUserPrefsChanged']; userPrefsEntity.userPrefs.userPrefs"/> <bind name="draggableWindow" value="'ELDragZone'; 'IMPosition'; 'EL'"/> <bind name="watch" value="'ELPositionX'; (userPrefs.IMPositionX.EL == null) ? '170' : userPrefs.IMPositionX.EL"/> <bind name="watch" value="'ELPositionY'; (userPrefs.IMPositionY.EL == null) ? '25' : userPrefs.IMPositionY.EL"/> <bind name="left" value="ELPositionX"/> <bind name="top" value="ELPositionY"/> <style> <width value="120px"/> <fontSize value="16"/> </style> <block> <styleClass value="$FullsizeAbsolute"/> <bind name="visible" value="true"/> <block type="text"> <bind name="text" value="'IDS_BATTLE_STATS_CAUSED_DAMAGE'"/> <styleClass value="$TextDefaultBold"/> <style> <width value="230px"/> <fontSize value="14"/> <textAlign value="center"/> </style> </block> <block> <bind name="repeat" value="damagedEntities; 'DamageMeterEnemyRow'; {}"/> </block> <style> <position value="absolute"/> </style> <params> <param name="name" value="ELDragZone"/> </params> </block> </block> <!--block className="OwnLog"> <bind name="firstEntityDH" value="'stageEntity'; CC.stage"/> <bind name="watchDH" value="'stage'; ['stageEntity.stage.evStageSizeChanged']; stageEntity.stage"/> <bind name="collectionDH" value="CC.userPrefs; 'userPrefsCollection'"/> <bind name="entityDH" value="'userPrefsEntity'; userPrefsCollection[0].id"/> <bind name="watchDH" value="'userPrefs'; ['userPrefsEntity.userPrefs.evUserPrefsChanged']; userPrefsEntity.userPrefs.userPrefs"/> <bind name="draggableWindow" value="'OLDragZone'; 'IMPosition'; 'OL'"/> <bind name="watch" value="'OLPositionX'; (userPrefs.IMPositionX.OL == null) ? '365' : userPrefs.IMPositionX.OL"/> <bind name="watch" value="'OLPositionY'; (userPrefs.IMPositionY.OL == null) ? ((stage.height) - 205) : userPrefs.IMPositionY.OL"/> <bind name="left" value="OLPositionX"/> <bind name="top" value="OLPositionY"/> <style> <position value="absolute"/> <width value="200px"/> </style> <block> <styleClass value="$FullsizeAbsolute"/> <bind name="visible" value="true"/> <block type="text"> <bind name="text" value="'IDS_TAKEN_DAMAGE_HINT'"/> <styleClass value="$TextDefaultBold"/> <style> <width value="180"/> <fontSize value="14"/> <textAlign value="center"/> </style> </block> <block> <bind name="repeat" value="damagedMeEntities; 'DamageMeterOwnRow'; {}"/> </block> <style> <position value="absolute"/> </style> <params> <param name="name" value="OLDragZone"/> </params> </block> </block--> </block> </block> </ui> -X33STORM DamageMeter.xml Edited December 29, 2018 by X33STORM Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.