protected void DisplayPaintSelectionControlGroup()
{
GUILayout.BeginHorizontal();
{
GUILayout.BeginVertical(); {
GUILayout.Label("SELECT TILES:", m_mainText);
GUILayout.Label(string.Format("({0} acres selected)", ResourceTileSelection.GetCurrent().Count()), m_mainTextAlt);
} GUILayout.EndVertical();
GUILayout.FlexibleSpace();
if (GUILayout.Button(
new GUIContent(
InputManager.paintSelectionInputMode==InputManager.PaintSelectionInputMode.Pan?m_panSelectionIconOn:m_panSelectionIconOff,
"Pan camera."
), InputManager.paintSelectionInputMode == InputManager.PaintSelectionInputMode.Pan?m_buttonFocused:m_button,
GUILayout.Height(m_squareButtonSize), GUILayout.Width(m_squareButtonSize)
)
){
InputManager.paintSelectionInputMode = InputManager.PaintSelectionInputMode.Pan;
}
if (GUILayout.Button(
new GUIContent(
InputManager.paintSelectionInputMode==InputManager.PaintSelectionInputMode.Select?m_selectResourceTileIconOn:m_selectResourceTileIconOff,
"Select resource tiles."
), InputManager.paintSelectionInputMode==InputManager.PaintSelectionInputMode.Select?m_buttonFocused:m_button,
GUILayout.Height(m_squareButtonSize), GUILayout.Width(m_squareButtonSize)
)
) {
InputManager.paintSelectionInputMode = InputManager.PaintSelectionInputMode.Select;
}
if (GUILayout.Button(
new GUIContent(
InputManager.paintSelectionInputMode==InputManager.PaintSelectionInputMode.Deselect?m_deselectResourceTileIconOn:m_deselectResourceTileIconOff,
"Deselect resource tiles."
), InputManager.paintSelectionInputMode==InputManager.PaintSelectionInputMode.Deselect?m_buttonFocused:m_button,
GUILayout.Height(m_squareButtonSize), GUILayout.Width(m_squareButtonSize)
)
) {
InputManager.paintSelectionInputMode = InputManager.PaintSelectionInputMode.Deselect;
}
if (GUILayout.Button(
new GUIContent(m_clearResourceTileSelectionIcon, "Clear resource tile selection."),
m_button,
GUILayout.Height(m_squareButtonSize), GUILayout.Width(m_squareButtonSize)
)
) {
InputManager.use.ClearResourceTileSelection();
}
}
GUILayout.EndHorizontal();
}