Ticket #4204: UdpHostHintAgreedPatch_v2.patch

File UdpHostHintAgreedPatch_v2.patch, 2.1 KB (added by elexis, 7 years ago)

The icon shouldn't be black. See civInfoButton from gamesetup.xml for correct styling.

  • binaries/data/mods/public/gui/gamesetup/gamesetup_mp.xml

     
    88    <script file="gui/gamesetup/gamesetup_mp.js"/>
    99
    1010    <!-- Add a translucent black background to fade out the menu page -->
    1111    <object type="image" sprite="ModernFade"/>
    1212
    13     <object name="multiplayerPages" type="image" style="ModernDialog" size="50%-230 50%-120 50%+230 50%+120">
     13    <object name="multiplayerPages" type="image" style="ModernDialog" size="50%-230 50%-120 50%+230 50%+130">
    1414
    1515        <action on="Tick">
    1616            onTick();
    1717        </action>
    1818
     
    105105                    <action on="Press">
    106106                        this.caption = getValidPort(this.caption);
    107107                    </action>
    108108                </object>
    109109            </object>
     110            <object type="text" size="0 106 50% 116" style="ModernLabelText" text_align="right">
     111                <object type="image" size="20 20 40 40" sprite="stretched:global/icon/info.png">
     112                    <translatableAttribute id="tooltip">Hosts who use a router to connect to the internet have to allow this port in the router configuration. This is called 'Port Forwarding' or 'NAT' (Network Address Traversal). The manual of the router can usually be found by doing a websearch for the name of the router.Furthermore the specified port configuration can become invalid if the local IP address of the current computer changes (which happens sometimes as DHCP is enabled by default).</translatableAttribute>
     113                </object>
     114            </object>
     115            <object type="text" size="50 116 100%-20 166" style="ModernLabelText" text_align="left">
     116                <translatableAttribute id="caption">In order to host a game, the specified server port must be reachable from the internet</translatableAttribute>
     117            </object> 
    110118        </object>
    111119
    112120        <object name="hostFeedback" type="text" style="ModernLabelText" size="50 100%-90 100%-50 100%-50" textcolor="red" />
    113121
    114122        <object name="continueButton" hotkey="confirm" type="button" size="50%+5 100%-45 100%-18 100%-17" style="ModernButtonRed">