Merge pull request #4986 from Mailaender/scroll-velocity
Scroll velocity polish
This commit is contained in:
@@ -36,7 +36,6 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
widget.Get<ButtonWidget>("BUTTON_CANCEL").OnClick = () => { Ui.CloseWindow(); onExit(); };
|
widget.Get<ButtonWidget>("BUTTON_CANCEL").OnClick = () => { Ui.CloseWindow(); onExit(); };
|
||||||
|
|
||||||
scrollpanel = widget.Get<ScrollPanelWidget>("MAP_LIST");
|
scrollpanel = widget.Get<ScrollPanelWidget>("MAP_LIST");
|
||||||
scrollpanel.ScrollVelocity = 40f;
|
|
||||||
scrollpanel.Layout = new GridLayout(scrollpanel);
|
scrollpanel.Layout = new GridLayout(scrollpanel);
|
||||||
|
|
||||||
itemTemplate = scrollpanel.Get<ScrollItemWidget>("MAP_TEMPLATE");
|
itemTemplate = scrollpanel.Get<ScrollItemWidget>("MAP_TEMPLATE");
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ namespace OpenRA.Mods.RA.Widgets
|
|||||||
public enum ResourceBarStyle { Flat, Bevelled }
|
public enum ResourceBarStyle { Flat, Bevelled }
|
||||||
public class ResourceBarWidget : Widget
|
public class ResourceBarWidget : Widget
|
||||||
{
|
{
|
||||||
public readonly string TooltipTemplate = "SIMPLE_TOOLTIP";
|
public readonly string TooltipTemplate;
|
||||||
public readonly string TooltipContainer;
|
public readonly string TooltipContainer;
|
||||||
Lazy<TooltipContainerWidget> tooltipContainer;
|
Lazy<TooltipContainerWidget> tooltipContainer;
|
||||||
|
|
||||||
|
|||||||
@@ -276,6 +276,7 @@ Container@PLAYER_WIDGETS:
|
|||||||
Width:PARENT_RIGHT-2
|
Width:PARENT_RIGHT-2
|
||||||
Height:PARENT_BOTTOM-2
|
Height:PARENT_BOTTOM-2
|
||||||
TooltipContainer:TOOLTIP_CONTAINER
|
TooltipContainer:TOOLTIP_CONTAINER
|
||||||
|
TooltipTemplate:SIMPLE_TOOLTIP
|
||||||
IndicatorImage:indicator-left
|
IndicatorImage:indicator-left
|
||||||
Background@SILOBAR_PANEL:
|
Background@SILOBAR_PANEL:
|
||||||
X:180
|
X:180
|
||||||
@@ -290,6 +291,7 @@ Container@PLAYER_WIDGETS:
|
|||||||
Width:PARENT_RIGHT-2
|
Width:PARENT_RIGHT-2
|
||||||
Height:PARENT_BOTTOM-2
|
Height:PARENT_BOTTOM-2
|
||||||
TooltipContainer:TOOLTIP_CONTAINER
|
TooltipContainer:TOOLTIP_CONTAINER
|
||||||
|
TooltipTemplate:SIMPLE_TOOLTIP
|
||||||
IndicatorImage:indicator-right
|
IndicatorImage:indicator-right
|
||||||
Label@CASH:
|
Label@CASH:
|
||||||
Y:170
|
Y:170
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ Container@MAPCHOOSER_PANEL:
|
|||||||
Y:45
|
Y:45
|
||||||
Width:PARENT_RIGHT - 30
|
Width:PARENT_RIGHT - 30
|
||||||
Height:440
|
Height:440
|
||||||
|
ScrollVelocity:40
|
||||||
Children:
|
Children:
|
||||||
ScrollItem@MAP_TEMPLATE:
|
ScrollItem@MAP_TEMPLATE:
|
||||||
Width:168
|
Width:168
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ Container@SERVERBROWSER_PANEL:
|
|||||||
Y:15
|
Y:15
|
||||||
Width:700
|
Width:700
|
||||||
Height:440
|
Height:440
|
||||||
|
ScrollVelocity:20
|
||||||
Children:
|
Children:
|
||||||
ScrollItem@SERVER_TEMPLATE:
|
ScrollItem@SERVER_TEMPLATE:
|
||||||
Width:PARENT_RIGHT-27
|
Width:PARENT_RIGHT-27
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ Container@PLAYER_WIDGETS:
|
|||||||
Width:138
|
Width:138
|
||||||
Height:5
|
Height:5
|
||||||
TooltipContainer:TOOLTIP_CONTAINER
|
TooltipContainer:TOOLTIP_CONTAINER
|
||||||
|
TooltipTemplate:SIMPLE_TOOLTIP
|
||||||
IndicatorImage:power-indicator
|
IndicatorImage:power-indicator
|
||||||
Orientation:Horizontal
|
Orientation:Horizontal
|
||||||
Style:Bevelled
|
Style:Bevelled
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ Container@PLAYER_WIDGETS:
|
|||||||
Width:138
|
Width:138
|
||||||
Height:5
|
Height:5
|
||||||
TooltipContainer:TOOLTIP_CONTAINER
|
TooltipContainer:TOOLTIP_CONTAINER
|
||||||
|
TooltipTemplate:SIMPLE_TOOLTIP
|
||||||
IndicatorImage:power-indicator
|
IndicatorImage:power-indicator
|
||||||
Orientation:Horizontal
|
Orientation:Horizontal
|
||||||
Style:Bevelled
|
Style:Bevelled
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ Background@MAPCHOOSER_PANEL:
|
|||||||
Y:47
|
Y:47
|
||||||
Width:PARENT_RIGHT - 40
|
Width:PARENT_RIGHT - 40
|
||||||
Height:474
|
Height:474
|
||||||
|
ScrollVelocity:40
|
||||||
Children:
|
Children:
|
||||||
ScrollItem@MAP_TEMPLATE:
|
ScrollItem@MAP_TEMPLATE:
|
||||||
Width:180
|
Width:180
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ Background@SERVERBROWSER_PANEL:
|
|||||||
Y:80
|
Y:80
|
||||||
Width:700
|
Width:700
|
||||||
Height:360
|
Height:360
|
||||||
|
ScrollVelocity:20
|
||||||
Children:
|
Children:
|
||||||
ScrollItem@SERVER_TEMPLATE:
|
ScrollItem@SERVER_TEMPLATE:
|
||||||
Width:PARENT_RIGHT-27
|
Width:PARENT_RIGHT-27
|
||||||
|
|||||||
Reference in New Issue
Block a user