Jelajahi Sumber

Add icons to start game tab, update button names

Ivan Savenko 10 bulan lalu
induk
melakukan
009fe1836a

+ 1 - 1
launcher/mainwindow_moc.ui

@@ -206,7 +206,7 @@
          </font>
         </property>
         <property name="text">
-         <string>Start game</string>
+         <string>Game</string>
         </property>
         <property name="iconSize">
          <size>

+ 4 - 0
launcher/startGame/StartGameTab.cpp

@@ -15,6 +15,10 @@ StartGameTab::StartGameTab(QWidget * parent)
 {
 	ui->setupUi(this);
 
+	ui->buttonGameResume->setIcon(QIcon{":/icons/menu-game.png"}); //TODO: different icon?
+	ui->buttonGameStart->setIcon(QIcon{":/icons/menu-game.png"});
+	ui->buttonGameEditor->setIcon(QIcon{":/icons/menu-editor.png"});
+
 	refreshState();
 
 	ui->buttonGameResume->setVisible(false); // TODO: implement

+ 35 - 3
launcher/startGame/StartGameTab.ui

@@ -749,7 +749,7 @@
       </spacer>
      </item>
      <item>
-      <widget class="QPushButton" name="buttonGameResume">
+      <widget class="QToolButton" name="buttonGameResume">
        <property name="sizePolicy">
         <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
          <horstretch>0</horstretch>
@@ -765,10 +765,19 @@
        <property name="text">
         <string>Resume</string>
        </property>
+       <property name="iconSize">
+        <size>
+         <width>64</width>
+         <height>64</height>
+        </size>
+       </property>
+       <property name="toolButtonStyle">
+        <enum>Qt::ToolButtonTextUnderIcon</enum>
+       </property>
       </widget>
      </item>
      <item>
-      <widget class="QPushButton" name="buttonGameStart">
+      <widget class="QToolButton" name="buttonGameStart">
        <property name="sizePolicy">
         <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
          <horstretch>0</horstretch>
@@ -781,13 +790,27 @@
          <height>100</height>
         </size>
        </property>
+       <property name="font">
+        <font>
+         <bold>true</bold>
+        </font>
+       </property>
        <property name="text">
         <string>Play</string>
        </property>
+       <property name="iconSize">
+        <size>
+         <width>64</width>
+         <height>64</height>
+        </size>
+       </property>
+       <property name="toolButtonStyle">
+        <enum>Qt::ToolButtonTextUnderIcon</enum>
+       </property>
       </widget>
      </item>
      <item>
-      <widget class="QPushButton" name="buttonGameEditor">
+      <widget class="QToolButton" name="buttonGameEditor">
        <property name="sizePolicy">
         <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
          <horstretch>0</horstretch>
@@ -803,6 +826,15 @@
        <property name="text">
         <string>Editor</string>
        </property>
+       <property name="iconSize">
+        <size>
+         <width>64</width>
+         <height>64</height>
+        </size>
+       </property>
+       <property name="toolButtonStyle">
+        <enum>Qt::ToolButtonTextUnderIcon</enum>
+       </property>
       </widget>
      </item>
      <item>