Skip to content

Commit 8cc1a37

Browse files
committed
feat: Change challenges, completed challenges panel layout manager and add event statistics panel
1 parent 6178f3f commit 8cc1a37

File tree

2 files changed

+33
-5
lines changed

2 files changed

+33
-5
lines changed

src/main/java/com/github/ilovegamecoding/intellijcodexp/form/CodeXPDashboard.form

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="com.github.ilovegamecoding.intellijcodexp.form.CodeXPDashboard">
3-
<grid id="27dc6" binding="pMain" layout-manager="GridLayoutManager" row-count="10" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
3+
<grid id="27dc6" binding="pMain" layout-manager="GridLayoutManager" row-count="12" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
44
<margin top="0" left="0" bottom="0" right="0"/>
55
<constraints>
6-
<xy x="20" y="20" width="606" height="525"/>
6+
<xy x="20" y="20" width="606" height="532"/>
77
</constraints>
88
<properties/>
99
<border type="none"/>
1010
<children>
1111
<vspacer id="d18ad">
1212
<constraints>
13-
<grid row="9" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
13+
<grid row="11" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
1414
</constraints>
1515
</vspacer>
1616
<grid id="48e1e" layout-manager="GridLayoutManager" row-count="2" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
@@ -327,15 +327,15 @@
327327
</component>
328328
</children>
329329
</grid>
330-
<grid id="23713" binding="clChallenges" layout-manager="CardLayout" hgap="0" vgap="0">
330+
<grid id="23713" binding="pChallenges" layout-manager="GridBagLayout">
331331
<constraints>
332332
<grid row="6" column="0" row-span="1" col-span="2" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
333333
</constraints>
334334
<properties/>
335335
<border type="none"/>
336336
<children/>
337337
</grid>
338-
<grid id="5f29e" binding="clCompletedChallenges" layout-manager="CardLayout" hgap="0" vgap="0">
338+
<grid id="5f29e" binding="pCompletedChallenges" layout-manager="GridBagLayout">
339339
<constraints>
340340
<grid row="8" column="0" row-span="1" col-span="2" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
341341
</constraints>
@@ -363,6 +363,33 @@
363363
</component>
364364
</children>
365365
</grid>
366+
<grid id="588b9" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
367+
<margin top="0" left="8" bottom="0" right="0"/>
368+
<constraints>
369+
<grid row="9" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
370+
</constraints>
371+
<properties/>
372+
<border type="none"/>
373+
<children>
374+
<component id="42ad4" class="javax.swing.JLabel">
375+
<constraints>
376+
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
377+
</constraints>
378+
<properties>
379+
<font name="Noto Sans SemiBold" size="16" style="0"/>
380+
<text resource-bundle="messages/CodeXPBundle" key="TEXT_EVENT_STATISTICS"/>
381+
</properties>
382+
</component>
383+
</children>
384+
</grid>
385+
<grid id="72579" binding="pEventStatistics" layout-manager="GridBagLayout">
386+
<constraints>
387+
<grid row="10" column="0" row-span="1" col-span="2" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
388+
</constraints>
389+
<properties/>
390+
<border type="none"/>
391+
<children/>
392+
</grid>
366393
</children>
367394
</grid>
368395
</form>

src/main/resources/messages/CodeXPBundle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ TEXT_+=+
33
TEXT_CHALLENGES=Challenges
44
TEXT_CODEXP_DASHBOARD=CodeXP Dashboard
55
TEXT_COMPLETED_CHALLENGES=Completed Challenges
6+
TEXT_EVENT_STATISTICS=Event Statistics
67
TEXT_LEVEL=Level
78
TEXT_LV=LV
89
TEXT_NAME=Name

0 commit comments

Comments
 (0)