diff options
Diffstat (limited to 'loader/src/main/resources')
-rw-r--r-- | loader/src/main/resources/assets/dungeons_guide_loader/gui/versions/versionInfo.gui | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/loader/src/main/resources/assets/dungeons_guide_loader/gui/versions/versionInfo.gui b/loader/src/main/resources/assets/dungeons_guide_loader/gui/versions/versionInfo.gui index cccbefde..0707899e 100644 --- a/loader/src/main/resources/assets/dungeons_guide_loader/gui/versions/versionInfo.gui +++ b/loader/src/main/resources/assets/dungeons_guide_loader/gui/versions/versionInfo.gui @@ -22,17 +22,26 @@ <UnconstrainedBox> <bgcolor backgroundColor="#CC222222"> <padding right="3" bottom="3" top="3" left="3"> - <row mainAlign="END" crossAlign="CENTER"> - <Text text="Make this version default" color="#FFFFFFFF"/> - <size width="5" height="0"/> - <size width="40" height="15"> - <SimpleToggleButton bind:enabled="default"/> - </size> - <size width="5" height="0"/> - <size width="40" height="15"> - <RoundButton text="Load" on:click="load"/> - </size> - </row> + <SelectiveContainer bind:visible="loadVisibility"> + <slot slot="loadable"> + <row mainAlign="END" crossAlign="CENTER"> + <Text text="Make this version default" color="#FFFFFFFF"/> + <size width="5" height="0"/> + <size width="40" height="15"> + <SimpleToggleButton bind:enabled="default"/> + </size> + <size width="5" height="0"/> + <size width="40" height="15"> + <RoundButton text="Load" on:click="load"/> + </size> + </row> + </slot> + <slot slot="notloadable"> + <ConstrainedBox maxWidth="200"> + <Text bind:text="reason" color="#FFFFAAAA"/> + </ConstrainedBox> + </slot> + </SelectiveContainer> </padding> </bgcolor> </UnconstrainedBox> |