resize region map tilemaps

This commit is contained in:
garak
2022-04-28 13:21:36 -04:00
committed by garakmon
parent cff77ad58e
commit f7a0e02f95
13 changed files with 306 additions and 249 deletions

View File

@@ -50,42 +50,6 @@
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QCheckBox" name="checkBox_crop">
<property name="text">
<string>Crop View to Map Size</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
@@ -196,7 +160,7 @@
<x>0</x>
<y>0</y>
<width>466</width>
<height>350</height>
<height>351</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_18">
@@ -317,7 +281,7 @@
<x>0</x>
<y>0</y>
<width>466</width>
<height>350</height>
<height>351</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_19">
@@ -438,7 +402,7 @@
<x>0</x>
<y>0</y>
<width>466</width>
<height>350</height>
<height>351</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_24">
@@ -588,7 +552,7 @@
<x>8</x>
<y>0</y>
<width>278</width>
<height>341</height>
<height>342</height>
</rect>
</property>
<property name="sizePolicy">
@@ -1126,6 +1090,7 @@
<string>File</string>
</property>
<addaction name="action_RegionMap_Save"/>
<addaction name="actionSave_All"/>
</widget>
<widget class="QMenu" name="menuEdit">
<property name="title">
@@ -1157,7 +1122,7 @@
</action>
<action name="action_RegionMap_Resize">
<property name="text">
<string>Resize</string>
<string>Resize Tilemap</string>
</property>
<property name="shortcut">
<string>Ctrl+R</string>
@@ -1193,6 +1158,11 @@
<string>Import City Map Image Tiles...</string>
</property>
</action>
<action name="actionSave_All">
<property name="text">
<string>Save All</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>

View File

@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>564</width>
<height>1016</height>
<height>902</height>
</rect>
</property>
<property name="sizePolicy">
@@ -43,27 +43,7 @@
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLabel" name="message_width">
<property name="styleSheet">
<string notr="true">color: #ff5c33</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QLabel" name="message_height">
<property name="styleSheet">
<string notr="true">color: #ff5c33</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="8" column="0" colspan="2">
<item row="4" column="0" colspan="2">
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Tilemap Properties</string>
@@ -112,25 +92,6 @@
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QSpinBox" name="config_tilemapWidth">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>75</width>
<height>0</height>
</size>
</property>
<property name="maximum">
<number>255</number>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLabel" name="message_tilemapWidth">
<property name="styleSheet">
@@ -167,16 +128,6 @@
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QLabel" name="message_tilemapHeight">
<property name="styleSheet">
<string notr="true">color: #ff5c33</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
@@ -292,6 +243,13 @@
</property>
</widget>
</item>
<item row="10" column="0">
<widget class="QLabel" name="label_11">
<property name="text">
<string>palette path</string>
</property>
</widget>
</item>
<item row="10" column="1">
<widget class="QFrame" name="frame_3">
<property name="frameShape">
@@ -326,17 +284,39 @@
</layout>
</widget>
</item>
<item row="10" column="0">
<widget class="QLabel" name="label_11">
<item row="5" column="1">
<widget class="QLabel" name="message_tilemapHeight">
<property name="styleSheet">
<string notr="true">color: #ff5c33</string>
</property>
<property name="text">
<string>palette path</string>
<string/>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QSpinBox" name="config_tilemapWidth">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>75</width>
<height>0</height>
</size>
</property>
<property name="maximum">
<number>255</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="10" column="0" colspan="2">
<item row="6" column="0" colspan="2">
<widget class="QGroupBox" name="group_layout">
<property name="title">
<string>Layout Properties</string>
@@ -620,7 +600,7 @@
</layout>
</widget>
</item>
<item row="13" column="0">
<item row="9" column="0">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
@@ -633,7 +613,7 @@
</property>
</spacer>
</item>
<item row="13" column="1">
<item row="9" column="1">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
@@ -643,52 +623,6 @@
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>width</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QSpinBox" name="config_width">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>75</width>
<height>0</height>
</size>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>height</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QSpinBox" name="config_height">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>75</width>
<height>0</height>
</size>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>