Remove renderer type setting.
Multiple people have needed support after breaking their game by switching to an unsupported renderer.
This commit is contained in:
@@ -114,11 +114,6 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
var display = bg.Get("DISPLAY_PANE");
|
var display = bg.Get("DISPLAY_PANE");
|
||||||
var gs = Game.Settings.Graphics;
|
var gs = Game.Settings.Graphics;
|
||||||
|
|
||||||
var GraphicsRendererDropdown = display.Get<DropDownButtonWidget>("GRAPHICS_RENDERER");
|
|
||||||
GraphicsRendererDropdown.OnMouseDown = _ => ShowRendererDropdown(GraphicsRendererDropdown, gs);
|
|
||||||
GraphicsRendererDropdown.GetText = () => gs.Renderer == "Gl" ?
|
|
||||||
"OpenGL" : gs.Renderer == "Cg" ? "Cg Toolkit" : "OpenGL";
|
|
||||||
|
|
||||||
var windowModeDropdown = display.Get<DropDownButtonWidget>("MODE_DROPDOWN");
|
var windowModeDropdown = display.Get<DropDownButtonWidget>("MODE_DROPDOWN");
|
||||||
windowModeDropdown.OnMouseDown = _ => ShowWindowModeDropdown(windowModeDropdown, gs);
|
windowModeDropdown.OnMouseDown = _ => ShowWindowModeDropdown(windowModeDropdown, gs);
|
||||||
windowModeDropdown.GetText = () => gs.Mode == WindowMode.Windowed ?
|
windowModeDropdown.GetText = () => gs.Mode == WindowMode.Windowed ?
|
||||||
|
|||||||
@@ -202,35 +202,22 @@ Background@SETTINGS_MENU:
|
|||||||
Height:PARENT_BOTTOM - 100
|
Height:PARENT_BOTTOM - 100
|
||||||
Visible: false
|
Visible: false
|
||||||
Children:
|
Children:
|
||||||
Label@RENDERER_LABEL:
|
|
||||||
X:0
|
|
||||||
Y:0
|
|
||||||
Width:75
|
|
||||||
Height:25
|
|
||||||
Text:Renderer:
|
|
||||||
DropDownButton@GRAPHICS_RENDERER:
|
|
||||||
X:80
|
|
||||||
Y:1
|
|
||||||
Width:120
|
|
||||||
Height:25
|
|
||||||
Font:Regular
|
|
||||||
Text:OpenGL
|
|
||||||
Label@MODE_LABEL:
|
Label@MODE_LABEL:
|
||||||
X:0
|
X:0
|
||||||
Y:30
|
Y:0
|
||||||
Width:45
|
Width:45
|
||||||
Height:25
|
Height:25
|
||||||
Text:Mode:
|
Text:Mode:
|
||||||
DropDownButton@MODE_DROPDOWN:
|
DropDownButton@MODE_DROPDOWN:
|
||||||
X:50
|
X:50
|
||||||
Y:30
|
Y:0
|
||||||
Width:170
|
Width:170
|
||||||
Height:25
|
Height:25
|
||||||
Font:Regular
|
Font:Regular
|
||||||
Text:Windowed
|
Text:Windowed
|
||||||
Container@WINDOW_RESOLUTION:
|
Container@WINDOW_RESOLUTION:
|
||||||
X:225
|
X:225
|
||||||
Y:30
|
Y:0
|
||||||
Children:
|
Children:
|
||||||
Label@At:
|
Label@At:
|
||||||
Text:@
|
Text:@
|
||||||
@@ -258,27 +245,27 @@ Background@SETTINGS_MENU:
|
|||||||
Height:25
|
Height:25
|
||||||
MaxLength:5
|
MaxLength:5
|
||||||
Label@VIDEO_DESC:
|
Label@VIDEO_DESC:
|
||||||
Y:60
|
Y:30
|
||||||
Width:PARENT_RIGHT
|
Width:PARENT_RIGHT
|
||||||
Height:25
|
Height:25
|
||||||
Font:Tiny
|
Font:Tiny
|
||||||
Align:Center
|
Align:Center
|
||||||
Text:Renderer/Mode/Resolution changes will be applied after the game is restarted.
|
Text:Renderer/Mode/Resolution changes will be applied after the game is restarted.
|
||||||
Checkbox@PIXELDOUBLE_CHECKBOX:
|
Checkbox@PIXELDOUBLE_CHECKBOX:
|
||||||
Y:90
|
Y:60
|
||||||
Width:200
|
Width:200
|
||||||
Height:20
|
Height:20
|
||||||
Font:Regular
|
Font:Regular
|
||||||
Text:Enable Pixel Doubling
|
Text:Enable Pixel Doubling
|
||||||
Checkbox@CAPFRAMERATE_CHECKBOX:
|
Checkbox@CAPFRAMERATE_CHECKBOX:
|
||||||
Y:120
|
Y:90
|
||||||
Width:200
|
Width:200
|
||||||
Height:20
|
Height:20
|
||||||
Font:Regular
|
Font:Regular
|
||||||
Text:Cap Framerate @
|
Text:Cap Framerate @
|
||||||
TextField@MAX_FRAMERATE:
|
TextField@MAX_FRAMERATE:
|
||||||
X:150
|
X:150
|
||||||
Y:120
|
Y:90
|
||||||
Width:45
|
Width:45
|
||||||
Height:25
|
Height:25
|
||||||
MaxLength:3
|
MaxLength:3
|
||||||
|
|||||||
Reference in New Issue
Block a user