PlaneShift

Development => Development Team Blog => Topic started by: Tuathanach on November 15, 2014, 03:17:08 pm

Title: New Chat Tabs Options for Skins
Post by: Tuathanach on November 15, 2014, 03:17:08 pm
As of Rev 9655 (https://sourceforge.net/p/planeshift/code/9655/) it is now possible to have double rows / columns of Chat Tabs with spaces between them. (See image for example).
(http://www.george-parkinson.co.uk/ps/shot42.jpg)
How Does it Work?
The tabs need to be entered in a specific order.
For double horizontal tabs, they must be entered top left then bottom left continuing top then bottom from left to right (see table for ordered example).
1|3|5|7|9
--+--+--+--+--
2|4|6|8|10

For Double vertical Tabs
They must be entered Top-left then top-right, continuing left to right work down.
1|2
--+--
3|4
--+--
5|6
--+--
7|8
--+--
9|10

Example of Double Horizontal Tab Code for chat.xml
Code: [Select]
<widget name="Main Button" factory="pawsButton" toggle="yes" id="1000" tooltip="Main" shadows="yes" style="Standard Tab">
                    <frame x="0" y="0" width="60" height="20" border="no" />
                    <label text="Main"/>
                <attachpoints>
                    <attach point="ATTACH_TOP" />
                    <attach point="ATTACH_LEFT" />
                </attachpoints>
   
                </widget>
                <widget name="Chat Button" factory="pawsButton" toggle="yes" id="1008" tooltip="Chat" shadows="yes" style="Standard Tab">
                    <label text="Chat"/>
                    <frame x="0" y="25" width="60" height="20" border="no"/>
                <attachpoints>
                    <attach point="ATTACH_TOP" />
                    <attach point="ATTACH_LEFT" />
                </attachpoints>
   
                </widget>
                <widget name="NPC Button" factory="pawsButton" toggle="yes" id="1002" tooltip="NPC" shadows="yes" style="Standard Tab">
                    <frame x="80" y="0" width="60" height="20" border="no" />
                    <label text="NPC"/>
                <attachpoints>
                    <attach point="ATTACH_TOP" />
                    <attach point="ATTACH_LEFT" />
                </attachpoints>
   
                </widget>
                <widget name="Tell Button" factory="pawsButton" toggle="yes" id="1003" tooltip="Whisper" shadows="yes" style="Standard Tab">
                    <frame x="80" y="25" width="60" height="20" border="no" />
                    <label text="Whisper"/>
                <attachpoints>
                    <attach point="ATTACH_TOP" />
                    <attach point="ATTACH_LEFT" />
                </attachpoints>
   
                </widget>
                <widget name="Guild Button" factory="pawsButton" toggle="yes" id="1004" tooltip="Guild" shadows="yes" style="Standard Tab">
                    <frame x="160" y="0" width="60" height="20" border="no" />
                    <label text="Guild"/>
                <attachpoints>
                    <attach point="ATTACH_TOP" />
                    <attach point="ATTACH_LEFT" />
                </attachpoints>
   
                </widget>
                <widget name="Group Button" factory="pawsButton" toggle="yes" id="1005" tooltip="Group" shadows="yes" style="Standard Tab">
                    <frame x="160" y="25" width="60" height="20" border="no" />
                    <label text="Group"/>
     
                </widget>
                <widget name="Alliance Button" factory="pawsButton" toggle="yes" id="1009" tooltip="Alliance" shadows="yes" style="Standard Tab">
                    <frame x="240" y="0" width="60" height="20" border="no" />
                    <label text="Alliance"/>
     
                </widget>
                <widget name="Auction Button" factory="pawsButton" toggle="yes" id="1006" tooltip="Auction" shadows="yes" style="Standard Tab">
                    <frame x="240" y="25" width="60" height="20" border="no" />
                    <label text="Auction"/>
   
                </widget>
                <widget name="System Button" factory="pawsButton" toggle="yes" id="1001" tooltip="System" shadows="yes" style="Standard Tab">
                    <label text="System"/>
                    <frame x="320" y="0" width="60" height="20" border="no" />
   
                </widget>
                 <widget name="Help Button" factory="pawsButton" toggle="yes" id="1007" tooltip="Help" shadows="yes" style="Standard Tab">
                    <label text="Help"/>
                    <frame x="320" y="25" width="60" height="20" border="no" />

If still unsure don't worry it will be in my darknight skin once code is in General release client.
Title: Re: New Chat Tabs Options for Skins
Post by: redhound on January 06, 2015, 10:32:03 pm
Interesting, planning to experiment with it.