New button layout

This commit is contained in:
Paul Chote
2011-05-05 20:46:35 +12:00
parent 79674b7418
commit 3e6d1fc1e2
4 changed files with 98 additions and 87 deletions

View File

@@ -15,7 +15,7 @@
version="1.1" version="1.1"
inkscape:version="0.48.1 r9760" inkscape:version="0.48.1 r9760"
sodipodi:docname="buttons.svg" sodipodi:docname="buttons.svg"
inkscape:export-filename="/Users/paul/src/OpenRA/mods/cnc/uibits/shellmap-border.png" inkscape:export-filename="/Users/paul/src/OpenRA/mods/cnc/uibits/uibuttons.png"
inkscape:export-xdpi="90" inkscape:export-xdpi="90"
inkscape:export-ydpi="90"> inkscape:export-ydpi="90">
<defs <defs
@@ -28,15 +28,15 @@
inkscape:pageopacity="0.0" inkscape:pageopacity="0.0"
inkscape:pageshadow="2" inkscape:pageshadow="2"
inkscape:zoom="4" inkscape:zoom="4"
inkscape:cx="38.797739" inkscape:cx="-5.452261"
inkscape:cy="49.497475" inkscape:cy="49.497475"
inkscape:document-units="px" inkscape:document-units="px"
inkscape:current-layer="layer1" inkscape:current-layer="layer1"
showgrid="false" showgrid="false"
inkscape:window-width="1386" inkscape:window-width="1626"
inkscape:window-height="856" inkscape:window-height="1006"
inkscape:window-x="54" inkscape:window-x="54"
inkscape:window-y="0" inkscape:window-y="22"
inkscape:window-maximized="0" /> inkscape:window-maximized="0" />
<metadata <metadata
id="metadata7"> id="metadata7">
@@ -56,11 +56,24 @@
id="layer1" id="layer1"
transform="translate(0,-924.3622)"> transform="translate(0,-924.3622)">
<rect <rect
style="fill:#2b0000;fill-opacity:0.50196078;stroke:#800000;stroke-width:2;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none" style="fill:#2b0000;fill-opacity:0.87843137;stroke:#800000;stroke-width:1;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none"
id="rect3776" id="rect3776"
width="126" width="63"
height="126" height="63"
x="1" x="0.5"
y="925.36218" /> y="988.86218"
inkscape:export-filename="/Users/paul/src/OpenRA/mods/cnc/uibits/rect3776.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
<rect
inkscape:export-ydpi="90"
inkscape:export-xdpi="90"
inkscape:export-filename="/Users/paul/src/OpenRA/mods/cnc/uibits/rect3776.png"
y="924.86218"
x="0.5"
height="63"
width="63"
id="rect3759"
style="fill:#560000;fill-opacity:0.87843138;stroke:#c00000;stroke-width:1;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@@ -130,38 +130,38 @@ tabs-normal: tabs.png
nod-Plane: 134,160,27,41 nod-Plane: 134,160,27,41
nod-Ship: 134,200,27,41 nod-Ship: 134,200,27,41
dialog: dialog.png dialog: uibuttons.png
background: 46,46,36,36 background: 2,2,60,60
border-r: 82,46,46,36 border-r: 62,2,2,60
border-l: 0,46,46,36 border-l: 0,2,2,60
border-b: 46,82,36,46 border-b: 2,62,60,2
border-t: 46,0,36,46 border-t: 2,0,60,2
corner-tl: 0,0,46,46 corner-tl: 0,0,2,2
corner-tr: 82,0,46,46 corner-tr: 62,0,2,2
corner-bl: 0,82,46,46 corner-bl: 0,62,2,2
corner-br: 82,82,46,46 corner-br: 62,62,2,2
dialog3: uibuttons.png
background: 2,2,60,60
border-r: 62,2,2,60
border-l: 0,2,2,60
border-b: 2,62,60,2
border-t: 2,0,60,2
corner-tl: 0,0,2,2
corner-tr: 62,0,2,2
corner-bl: 0,62,2,2
corner-br: 62,62,2,2
dialog2: uibuttons.png dialog2: uibuttons.png
background: 2,2,124,124 background: 2,66,60,60
border-r: 126,2,2,124 border-r: 62,66,2,60
border-l: 0,2,2,124 border-l: 0,66,2,60
border-b: 2,126,124,2 border-b: 2,126,60,2
border-t: 2,0,124,2 border-t: 2,64,60,2
corner-tl: 0,0,2,2 corner-tl: 0,64,2,2
corner-tr: 126,0,2,2 corner-tr: 62,64,2,2
corner-bl: 0,126,2,2 corner-bl: 0,126,2,2
corner-br: 126,126,2,2 corner-br: 62,126,2,2
dialog3: dialog3.png
background: 1,1,126,126
border-r: 127,1,1,126
border-l: 0,1,1,126
border-b: 1,127,126,1
border-t: 1,0,126,1
corner-tl: 0,0,1,1
corner-tr: 82,0,1,1
corner-bl: 0,82,1,1
corner-br: 82,82,1,1
dialog4: dialog4.png dialog4: dialog4.png
border-t: 5,0,52,6 border-t: 5,0,52,6

View File

@@ -4,7 +4,6 @@ Container@MAINMENU_BG:
Y:0 Y:0
Width:WINDOW_RIGHT Width:WINDOW_RIGHT
Height:WINDOW_BOTTOM Height:WINDOW_BOTTOM
Delegate:MainMenuButtonsDelegate
Children: Children:
Image@RETICLE: Image@RETICLE:
X:(WINDOW_RIGHT-WIDTH)/2 X:(WINDOW_RIGHT-WIDTH)/2
@@ -19,51 +18,50 @@ Container@MAINMENU_BG:
Width:WINDOW_RIGHT Width:WINDOW_RIGHT
Height:WINDOW_BOTTOM Height:WINDOW_BOTTOM
Background:shellmapborder Background:shellmapborder
Button@MAINMENU_BUTTON_JOIN: Container@BUTTON_CONTAINER:
Id:MAINMENU_BUTTON_JOIN Id:BUTTON_CONTAINER
X:WINDOW_RIGHT-WIDTH-47 X:(WINDOW_RIGHT-WIDTH)/2
Y:150 Y:WINDOW_BOTTOM-33-HEIGHT-10
Width:160 Width:740
Height:35 Height:35
Text:Campaign Children:
Bold:True Button@SOLO_BUTTON:
Button@MAINMENU_BUTTON_CREATE: Id:SOLO_BUTTON
Id:MAINMENU_BUTTON_CREATE X:0
X:WINDOW_RIGHT-WIDTH-47 Y:0
Y:200 Width:140
Width:160
Height:35 Height:35
Text:Skirmish/Online Text:Solo Play
Bold:True Bold:True
Button@MAINMENU_BUTTON_SETTINGS: Button@MULTIPLAYER_BUTTON:
Id:MAINMENU_BUTTON_SETTINGS Id:MULTIPLAYER_BUTTON
X:WINDOW_RIGHT-WIDTH-47 X:150
Y:250 Y:0
Width:160 Width:140
Height:35 Height:35
Text:Settings Text:Multiplayer
Bold:True Bold:True
Button@MAINMENU_BUTTON_MUSIC: Button@REPLAY_BUTTON:
Id:MAINMENU_BUTTON_MUSIC Id:REPLAY_BUTTON
X:WINDOW_RIGHT-WIDTH-47 X:300
Y:300 Y:0
Width:160 Width:140
Height:35 Height:35
Text:Music Text: Replays
Bold: True Bold: True
Button@MAINMENU_BUTTON_REPLAY_VIEWER: Button@SETTINGS_BUTTON:
Id:MAINMENU_BUTTON_REPLAY_VIEWER Id:SETTINGS_BUTTON
X:WINDOW_RIGHT-WIDTH-47 X:450
Y:350 Y:0
Width:160 Width:140
Height:35 Height:35
Text: Replay Viewer Text:Options
Bold:True Bold:True
Button@MAINMENU_BUTTON_QUIT: Button@QUIT_BUTTON:
Id:MAINMENU_BUTTON_QUIT Id:QUIT_BUTTON
X:WINDOW_RIGHT-WIDTH-47 X:600
Y:400 Y:0
Width:160 Width:140
Height:35 Height:35
Text:Quit Text:Quit
Bold:True Bold:True

Binary file not shown.

Before

Width:  |  Height:  |  Size: 490 B

After

Width:  |  Height:  |  Size: 526 B