Skip to content

Commit

Permalink
finish mainwindow
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodCoder666 committed Dec 7, 2024
1 parent 3a32c65 commit 7a7a3eb
Show file tree
Hide file tree
Showing 3 changed files with 254 additions and 41 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ set(PROJECT_SOURCES
mainwindow.cpp
mainwindow.h
mainwindow.ui
res.qrc
)

if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
Expand Down
292 changes: 251 additions & 41 deletions mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -16,51 +16,262 @@
</font>
</property>
<property name="windowTitle">
<string>LocalGen</string>
<string>LocalGen 6.0.0</string>
</property>
<property name="windowIcon">
<iconset resource="res.qrc">
<normaloff>:/images/img/favicon.png</normaloff>:/images/img/favicon.png</iconset>
</property>
<property name="styleSheet">
<string notr="true">QLabel {
color: white;
}</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="favicon">
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="res.qrc">:/images/img/favicon.png</pixmap>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
<property name="font">
<font>
<family>Quicksand</family>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(34, 34, 34);</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="gameTitle">
<property name="font">
<font>
<family>Quicksand</family>
<pointsize>25</pointsize>
</font>
</property>
<property name="text">
<string>Local Generals.io</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="favicon">
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="res.qrc">:/images/img/favicon.png</pixmap>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="gameTitle">
<property name="font">
<font>
<family>Quicksand</family>
<pointsize>25</pointsize>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>Local Generals.io</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label">
<property name="font">
<font>
<family>Quicksand</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>version 6.0.0 (alpha)</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="btnLocalGame">
<property name="minimumSize">
<size>
<width>0</width>
<height>45</height>
</size>
</property>
<property name="font">
<font>
<family>Quicksand</family>
<pointsize>15</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: white;</string>
</property>
<property name="text">
<string> Local Game</string>
</property>
<property name="icon">
<iconset theme="QIcon::ThemeIcon::GoHome"/>
</property>
<property name="iconSize">
<size>
<width>30</width>
<height>30</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnWebGame">
<property name="minimumSize">
<size>
<width>0</width>
<height>45</height>
</size>
</property>
<property name="font">
<font>
<family>Quicksand</family>
<pointsize>15</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: white;</string>
</property>
<property name="text">
<string> Web Game</string>
</property>
<property name="icon">
<iconset theme="QIcon::ThemeIcon::NetworkWireless"/>
</property>
<property name="iconSize">
<size>
<width>30</width>
<height>30</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnLoadReplay">
<property name="minimumSize">
<size>
<width>0</width>
<height>45</height>
</size>
</property>
<property name="font">
<font>
<family>Quicksand</family>
<pointsize>15</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: white;</string>
</property>
<property name="text">
<string> Load Replay</string>
</property>
<property name="icon">
<iconset theme="QIcon::ThemeIcon::SystemLogOut"/>
</property>
<property name="iconSize">
<size>
<width>30</width>
<height>30</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnCreateMap">
<property name="minimumSize">
<size>
<width>0</width>
<height>45</height>
</size>
</property>
<property name="font">
<font>
<family>Quicksand</family>
<pointsize>15</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: white;</string>
</property>
<property name="text">
<string> Create Map</string>
</property>
<property name="icon">
<iconset theme="QIcon::ThemeIcon::FolderNew"/>
</property>
<property name="iconSize">
<size>
<width>30</width>
<height>30</height>
</size>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
Expand All @@ -74,7 +285,6 @@
</rect>
</property>
</widget>
<widget class="QStatusBar" name="statusbar"/>
</widget>
<resources>
<include location="res.qrc"/>
Expand Down
2 changes: 2 additions & 0 deletions res.qrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<RCC>
<qresource prefix="images">
<file>img/github.png</file>
<file>img/options.png</file>
<file>img/favicon.png</file>
</qresource>
</RCC>

0 comments on commit 7a7a3eb

Please sign in to comment.