Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7916 for code


Ignore:
Timestamp:
Feb 19, 2011, 5:05:08 PM (14 years ago)
Author:
landauf
Message:

replaced tabs with spaces in files where they were used mixed

Location:
code/branches/usability/data/gui
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/usability/data/gui/configs/CEGUIConfig.xsd

    r5781 r7916  
    22<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    33
    4         <xsd:element name="CEGUIConfig" type="CEGUIConfigType"/>
     4    <xsd:element name="CEGUIConfig" type="CEGUIConfigType"/>
    55
    66    <xsd:simpleType name="LogLevel">
     
    1212        </xsd:restriction>
    1313    </xsd:simpleType>
    14    
    15         <xsd:complexType name="CEGUIConfigType">
    16                 <xsd:attribute name="Logfile" type="xsd:string" use="optional" default=""/>
    17                 <xsd:attribute name="Scheme" type="xsd:string" use="optional" default=""/>
    18                 <xsd:attribute name="DefaultFont" type="xsd:string" use="optional" default=""/>
    19                 <xsd:attribute name="Layout" type="xsd:string" use="optional" default=""/>
    20                 <xsd:attribute name="InitScript" type="xsd:string" use="optional" default=""/>
    21                 <xsd:attribute name="TerminateScript" type="xsd:string" use="optional" default=""/>
    22                 <xsd:attribute name="DefaultResourceGroup" type="xsd:string" use="optional"  default="" />
     14
     15    <xsd:complexType name="CEGUIConfigType">
     16        <xsd:attribute name="Logfile" type="xsd:string" use="optional" default=""/>
     17        <xsd:attribute name="Scheme" type="xsd:string" use="optional" default=""/>
     18        <xsd:attribute name="DefaultFont" type="xsd:string" use="optional" default=""/>
     19        <xsd:attribute name="Layout" type="xsd:string" use="optional" default=""/>
     20        <xsd:attribute name="InitScript" type="xsd:string" use="optional" default=""/>
     21        <xsd:attribute name="TerminateScript" type="xsd:string" use="optional" default=""/>
     22        <xsd:attribute name="DefaultResourceGroup" type="xsd:string" use="optional"  default="" />
    2323        <xsd:attribute name="LoggingLevel" type="LogLevel" use="optional"  default="Standard" />
    24         </xsd:complexType>
    25        
     24    </xsd:complexType>
     25
    2626</xsd:schema>
    2727
  • code/branches/usability/data/gui/schemes/GUIScheme.xsd

    r5781 r7916  
    11<?xml version="1.0" ?>
    22<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    3         <xsd:element name="GUIScheme" type="SchemeType" />
    4         <xsd:complexType name="SchemeType">
     3    <xsd:element name="GUIScheme" type="SchemeType" />
     4    <xsd:complexType name="SchemeType">
    55        <xsd:choice minOccurs="0" maxOccurs="unbounded">
    6                         <xsd:element name="Imageset" type="NamedDataType" />
     6            <xsd:element name="Imageset" type="NamedDataType" />
    77            <xsd:element name="ImagesetFromImage" type="NamedDataType" />
    8                         <xsd:element name="Font" type="NamedDataType" />
     8            <xsd:element name="Font" type="NamedDataType" />
    99            <xsd:element name="LookNFeel" type="FileDataType" />
    10                         <xsd:element name="WindowSet" type="WindowSetType" />
    11                         <xsd:element name="WindowRendererSet" type="WindowRendererSetType" />
    12                         <xsd:element name="WindowAlias" type="WindowAliasType" />
     10            <xsd:element name="WindowSet" type="WindowSetType" />
     11            <xsd:element name="WindowRendererSet" type="WindowRendererSetType" />
     12            <xsd:element name="WindowAlias" type="WindowAliasType" />
    1313            <xsd:element name="FalagardMapping" type="FalagardMapType" />
    14                 </xsd:choice>
    15                 <xsd:attribute name="Name" type="xsd:string" use="required" />
    16         </xsd:complexType>
    17         <xsd:complexType name="WindowSetType">
    18                 <xsd:sequence>
     14        </xsd:choice>
     15        <xsd:attribute name="Name" type="xsd:string" use="required" />
     16    </xsd:complexType>
     17    <xsd:complexType name="WindowSetType">
     18        <xsd:sequence>
    1919            <xsd:element name="WindowFactory" type="WindowFactoryType" minOccurs="0" maxOccurs="unbounded" />
    20                 </xsd:sequence>
    21                 <xsd:attribute name="Filename" type="xsd:string" use="required" />
    22         </xsd:complexType>
    23         <xsd:complexType name="WindowRendererSetType">
    24                 <xsd:sequence>
     20        </xsd:sequence>
     21        <xsd:attribute name="Filename" type="xsd:string" use="required" />
     22    </xsd:complexType>
     23    <xsd:complexType name="WindowRendererSetType">
     24        <xsd:sequence>
    2525            <xsd:element name="WindowRendererFactory" type="WindowRendererFactoryType" minOccurs="0" maxOccurs="unbounded" />
    26                 </xsd:sequence>
    27                 <xsd:attribute name="Filename" type="xsd:string" use="required" />
    28         </xsd:complexType>
     26        </xsd:sequence>
     27        <xsd:attribute name="Filename" type="xsd:string" use="required" />
     28    </xsd:complexType>
    2929    <xsd:complexType name="FileDataType">
    3030        <xsd:attribute name="Filename" type="xsd:string" use="required" />
    3131        <xsd:attribute name="ResourceGroup" type="xsd:string" use="optional"  default="" />
    3232    </xsd:complexType>
    33         <xsd:complexType name="NamedDataType">
    34                 <xsd:attribute name="Name" type="xsd:string" use="required" />
    35                 <xsd:attribute name="Filename" type="xsd:string" use="required" />
    36                 <xsd:attribute name="ResourceGroup" type="xsd:string" use="optional"  default="" />
    37         </xsd:complexType>
    38         <xsd:complexType name="WindowFactoryType">
    39                 <xsd:attribute name="Name" type="xsd:string" use="required" />
    40         </xsd:complexType>
    41         <xsd:complexType name="WindowRendererFactoryType">
    42                 <xsd:attribute name="Name" type="xsd:string" use="required" />
    43         </xsd:complexType>
    44         <xsd:complexType name="WindowAliasType">
    45                 <xsd:attribute name="Alias" type="xsd:string" use="required" />
    46                 <xsd:attribute name="Target" type="xsd:string" use="required" />
    47         </xsd:complexType>
     33    <xsd:complexType name="NamedDataType">
     34        <xsd:attribute name="Name" type="xsd:string" use="required" />
     35        <xsd:attribute name="Filename" type="xsd:string" use="required" />
     36        <xsd:attribute name="ResourceGroup" type="xsd:string" use="optional"  default="" />
     37    </xsd:complexType>
     38    <xsd:complexType name="WindowFactoryType">
     39        <xsd:attribute name="Name" type="xsd:string" use="required" />
     40    </xsd:complexType>
     41    <xsd:complexType name="WindowRendererFactoryType">
     42        <xsd:attribute name="Name" type="xsd:string" use="required" />
     43    </xsd:complexType>
     44    <xsd:complexType name="WindowAliasType">
     45        <xsd:attribute name="Alias" type="xsd:string" use="required" />
     46        <xsd:attribute name="Target" type="xsd:string" use="required" />
     47    </xsd:complexType>
    4848    <xsd:complexType name="FalagardMapType">
    4949        <xsd:attribute name="WindowType" type="xsd:string" use="required" />
    5050        <xsd:attribute name="TargetType" type="xsd:string" use="required" />
    51                 <xsd:attribute name="Renderer" type="xsd:string" use="required" />
     51        <xsd:attribute name="Renderer" type="xsd:string" use="required" />
    5252        <xsd:attribute name="LookNFeel" type="xsd:string" use="required" />
    5353    </xsd:complexType>
  • code/branches/usability/data/gui/schemes/OrxonoxLook.scheme

    r7887 r7916  
    11<?xml version="1.0" ?>
    22<GUIScheme Name="OrxonoxLook">
    3         <Imageset Name="OrxonoxLook" Filename="OrxonoxLook.imageset" />
    4         <LookNFeel Filename="OrxonoxLook.looknfeel" />
    5         <WindowRendererSet Filename="CEGUIFalagardWRBase" />
     3    <Imageset Name="OrxonoxLook" Filename="OrxonoxLook.imageset" />
     4    <LookNFeel Filename="OrxonoxLook.looknfeel" />
     5    <WindowRendererSet Filename="CEGUIFalagardWRBase" />
    66
    77    <!-- Standard widgets -->
     
    4545    <FalagardMapping WindowType="OrxonoxLook/Tooltip"                  TargetType="CEGUI/Tooltip"           Renderer="Falagard/Tooltip"           LookNFeel="OrxonoxLook/Tooltip" />
    4646    <FalagardMapping WindowType="OrxonoxLook/Tree"                     TargetType="CEGUI/Tree"              Renderer="Falagard/Tree"              LookNFeel="OrxonoxLook/Tree" />
    47    
     47
    4848    <!-- Additional widgets -->
    4949    <FalagardMapping WindowType="OrxonoxLook/AlternateProgressBar"        TargetType="CEGUI/ProgressBar"       Renderer="Falagard/ProgressBar"       LookNFeel="OrxonoxLook/AltProgressBar" />
  • code/branches/usability/data/gui/schemes/TaharezGreenLook.scheme

    r6746 r7916  
    11<?xml version="1.0" ?>
    22<GUIScheme Name="TaharezGreenLook">
    3         <Imageset Name="TaharezGreenLook" Filename="TaharezGreenLook.imageset" />
    4         <LookNFeel Filename="TaharezGreenLook.looknfeel" />
    5         <WindowRendererSet Filename="CEGUIFalagardWRBase" />
     3    <Imageset Name="TaharezGreenLook" Filename="TaharezGreenLook.imageset" />
     4    <LookNFeel Filename="TaharezGreenLook.looknfeel" />
     5    <WindowRendererSet Filename="CEGUIFalagardWRBase" />
    66
    77    <!-- Standard widgets -->
     
    4545    <FalagardMapping WindowType="TaharezGreenLook/Tooltip"                  TargetType="CEGUI/Tooltip"           Renderer="Falagard/Tooltip"           LookNFeel="TaharezGreenLook/Tooltip" />
    4646    <FalagardMapping WindowType="TaharezGreenLook/Tree"                     TargetType="CEGUI/Tree"              Renderer="Falagard/Tree"              LookNFeel="TaharezGreenLook/Tree" />
    47    
     47
    4848    <!-- Additional widgets -->
    4949    <FalagardMapping WindowType="TaharezGreenLook/AlternateProgressBar"        TargetType="CEGUI/ProgressBar"       Renderer="Falagard/ProgressBar"       LookNFeel="TaharezGreenLook/AltProgressBar" />
  • code/branches/usability/data/gui/schemes/TaharezLook.scheme

    r6746 r7916  
    11<?xml version="1.0" ?>
    22<GUIScheme Name="TaharezLook">
    3         <Imageset Name="TaharezLook" Filename="TaharezLook.imageset" />
    4         <LookNFeel Filename="TaharezLook.looknfeel" />
    5         <WindowRendererSet Filename="CEGUIFalagardWRBase" />
     3    <Imageset Name="TaharezLook" Filename="TaharezLook.imageset" />
     4    <LookNFeel Filename="TaharezLook.looknfeel" />
     5    <WindowRendererSet Filename="CEGUIFalagardWRBase" />
    66
    77    <!-- Standard widgets -->
     
    4545    <FalagardMapping WindowType="TaharezLook/Tooltip"                  TargetType="CEGUI/Tooltip"           Renderer="Falagard/Tooltip"           LookNFeel="TaharezLook/Tooltip" />
    4646    <FalagardMapping WindowType="TaharezLook/Tree"                     TargetType="CEGUI/Tree"              Renderer="Falagard/Tree"              LookNFeel="TaharezLook/Tree" />
    47    
     47
    4848    <!-- Additional widgets -->
    4949    <FalagardMapping WindowType="TaharezLook/AlternateProgressBar"        TargetType="CEGUI/ProgressBar"       Renderer="Falagard/ProgressBar"       LookNFeel="TaharezLook/AltProgressBar" />
  • code/branches/usability/data/gui/scripts/MultiplayerMenu.lua

    r7876 r7916  
    1010
    1111function P.onLoad()
    12     P.multiplayerMode = "startClient" 
     12    P.multiplayerMode = "startClient"
    1313
    1414    --button are arranged in a 2x2 matrix, the left lower item is nil
     
    3838    P.oldindex = -2
    3939    P.index = -1
    40    
     40
    4141    if P.joinMode == 1 then
    4242        local window = winMgr:getWindow("orxonox/MultiplayerLanButton")
     
    5656    P.joinMode = 1
    5757    if button:isSelected() == true then
    58             P.showServerList()
     58        P.showServerList()
    5959    end
    6060end
     
    6565    P.joinMode = 2
    6666    if button:isSelected() == true then
    67             P.showServerList()
    68         end
     67        P.showServerList()
     68    end
    6969end
    7070
     
    9292
    9393function P.showServerList()
    94         -- LAN Discovery
    95         if P.joinMode == 1 then
    96                 local listbox = winMgr:getWindow("orxonox/MultiplayerListbox")
    97                 CEGUI.toListbox(listbox):resetList()
    98                 local discovery = orxonox.LANDiscovery:getInstance()
    99                 discovery:discover()
    100                 P.serverList = {}
    101                 local index = 0
    102                 local servername = ""
    103                 local serverip = ""
    104                 while true do
    105                     servername = discovery:getServerListItemName(index)
    106                     if servername == "" then
    107                         break
    108                     end
    109                     serverip = discovery:getServerListItemIP(index)
    110                     if serverip == "" then
    111                       break
    112                     end
    113                     table.insert(P.serverList, {servername, serverip})
    114                     index = index + 1
    115                 end
    116                 index = 1
    117                 for k,v in pairs(P.serverList) do
    118                     local item = CEGUI.createListboxTextItem( v[1] .. ": " .. v[2] )
    119                     item:setID(index)
    120                     index = index + 1
    121                     item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
    122                     CEGUI.toListbox(listbox):addItem(item)
    123                 end
    124         -- WAN Discovery
    125         elseif P.joinMode == 2 then
    126                 local listbox = winMgr:getWindow("orxonox/MultiplayerListbox")
    127                 CEGUI.toListbox(listbox):resetList()
    128                 local discovery = orxonox.WANDiscovery:getInstance()
    129                 cout(0, "discovering.\n" )
    130                 discovery:discover()
    131                 cout(0, "discovered.\n" )
    132                 P.serverList = {}
    133                 local index = 0
    134                 local servername = ""
    135                 local serverip = ""
    136                 while true do
    137                     servername = discovery:getServerListItemName(index)
    138                     if servername == "" then
    139                         break
    140                     end
    141                     serverip = discovery:getServerListItemIP(index)
    142                     if serverip == "" then
    143                       break
    144                     end
    145                     table.insert(P.serverList, {servername, serverip})
    146                     index = index + 1
    147                 end
    148                 index = 1
    149                 for k,v in pairs(P.serverList) do
    150                     local item = CEGUI.createListboxTextItem( v[1] .. ": " .. v[2] )
    151                     item:setID(index)
    152                     index = index + 1
    153                     item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
    154                     CEGUI.toListbox(listbox):addItem(item)
    155                 end
    156         end
    157        
     94    -- LAN Discovery
     95    if P.joinMode == 1 then
     96        local listbox = winMgr:getWindow("orxonox/MultiplayerListbox")
     97        CEGUI.toListbox(listbox):resetList()
     98        local discovery = orxonox.LANDiscovery:getInstance()
     99        discovery:discover()
     100        P.serverList = {}
     101        local index = 0
     102        local servername = ""
     103        local serverip = ""
     104        while true do
     105            servername = discovery:getServerListItemName(index)
     106            if servername == "" then
     107                break
     108            end
     109            serverip = discovery:getServerListItemIP(index)
     110            if serverip == "" then
     111                break
     112            end
     113            table.insert(P.serverList, {servername, serverip})
     114            index = index + 1
     115        end
     116        index = 1
     117        for k,v in pairs(P.serverList) do
     118            local item = CEGUI.createListboxTextItem( v[1] .. ": " .. v[2] )
     119            item:setID(index)
     120            index = index + 1
     121            item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
     122            CEGUI.toListbox(listbox):addItem(item)
     123        end
     124    -- WAN Discovery
     125    elseif P.joinMode == 2 then
     126        local listbox = winMgr:getWindow("orxonox/MultiplayerListbox")
     127        CEGUI.toListbox(listbox):resetList()
     128        local discovery = orxonox.WANDiscovery:getInstance()
     129        cout(0, "discovering.\n" )
     130        discovery:discover()
     131        cout(0, "discovered.\n" )
     132        P.serverList = {}
     133        local index = 0
     134        local servername = ""
     135        local serverip = ""
     136        while true do
     137            servername = discovery:getServerListItemName(index)
     138            if servername == "" then
     139                break
     140            end
     141            serverip = discovery:getServerListItemIP(index)
     142            if serverip == "" then
     143                break
     144            end
     145            table.insert(P.serverList, {servername, serverip})
     146            index = index + 1
     147        end
     148        index = 1
     149        for k,v in pairs(P.serverList) do
     150            local item = CEGUI.createListboxTextItem( v[1] .. ": " .. v[2] )
     151            item:setID(index)
     152            index = index + 1
     153            item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
     154            CEGUI.toListbox(listbox):addItem(item)
     155        end
     156    end
     157
    158158end
    159159
    160 function P.onKeyPressed() 
     160function P.onKeyPressed()
    161161    buttonIteratorHelper(P.buttonList, code, P, 2, 2)
    162162end
Note: See TracChangeset for help on using the changeset viewer.