Skip to content

Commit

Permalink
Added a way to flip the canvas horizontally
Browse files Browse the repository at this point in the history
  • Loading branch information
Gemmstone committed Jan 15, 2024
1 parent 89d8c8b commit 7ecaca9
Show file tree
Hide file tree
Showing 6 changed files with 261 additions and 158 deletions.
33 changes: 20 additions & 13 deletions Data/current.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,34 @@
"Assets/right eye/right eye_054.png",
"Assets/left eye/left eye_001.png",
"Assets/left eye/left eye_056.png",
"Assets/eyebrows/eyebrows_003.png",
"Assets/eyebrows/eyebrows_004.png",
"Assets/mouth/[mouth]_009.PNG",
"Assets/mouth/[mouth]_007.PNG",
"Assets/mouth/[mouth]_004.PNG",
"Assets/blush/blush_029.png",
"Assets/blush/blush_030.png",
"Assets/hairbows/hairbows_119.png",
"Assets/hands/hands_050.png",
"Assets/hairbows/hairbows_168.png",
"Assets/hairbows/hairbows_242.png",
"Assets/hairbows/hairbows_260.png",
"Assets/hairbows/hairbows_321.png",
"Assets/hairbows/hairbows_322.png",
"Assets/ahoge/ahoge_026.png",
"Assets/bangs/bangs_154.png",
"Assets/side pieces/side pieces_159.png",
"Assets/side pieces/side pieces_160.png",
"Assets/ponytails/ponytails_141.png",
"Assets/ponytails/ponytails_142.png",
"Assets/ponytails/ponytails_249.png",
"Assets/ponytails/ponytails_250.png",
"Assets/glasses/glasses_044.png",
"Assets/face assc/face assc_087.png",
"Assets/face assc/face assc_088.png",
"Assets/eyebrows/eyebrows_003.png",
"Assets/eyebrows/eyebrows_004.png",
"Assets/nose/[nose]_001.PNG",
"Assets/overshirts/overshirts_115.png",
"Assets/undershirt style/undershirt style_040.png",
"Assets/undershirts/undershirts_027.png",
"Assets/mouth/[mouth]_009.PNG",
"Assets/mouth/[mouth]_007.PNG",
"Assets/mouth/[mouth]_004.PNG",
"Assets/overshirts/overshirts_062.png",
"Assets/undershirt style/undershirt style_033.png",
"Assets/undershirts/undershirts_090.png",
"Assets/blush/blush_029.png",
"Assets/blush/blush_030.png",
"Assets/body/body_049.png",
"Assets/wings/wings_001.png",
"Assets/wings/wings_002.png",
"Assets/hairback/hairback_172.png"
]
2 changes: 1 addition & 1 deletion Data/current_model.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "Academic",
"name": "Hoodie",
"type": "Avatars"
}
2 changes: 1 addition & 1 deletion UI/audioMonitor.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>267</width>
<height>195</height>
<height>206</height>
</rect>
</property>
<property name="windowTitle">
Expand Down
261 changes: 137 additions & 124 deletions UI/main.ui
Original file line number Diff line number Diff line change
Expand Up @@ -1758,7 +1758,7 @@ QFrame{
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_7">
<layout class="QVBoxLayout" name="verticalLayout_37">
<item>
<widget class="QComboBox" name="comboBox">
<property name="sizePolicy">
Expand Down Expand Up @@ -1813,6 +1813,34 @@ QFrame{
</item>
</widget>
</item>
<item>
<widget class="QCheckBox" name="flipCanvasToggle">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>Flip canvas horizontaly</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
<property name="tristate">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="HideUI">
<property name="sizePolicy">
Expand Down Expand Up @@ -1847,6 +1875,114 @@ QFrame{
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_8">
<property name="title">
<string>Export PNG</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_35">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>23</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QFrame" name="audioFrame_2">
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="1">
<widget class="QPushButton" name="PNG">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="toolTip">
<string>Save PNG Image</string>
</property>
<property name="statusTip">
<string/>
</property>
<property name="whatsThis">
<string/>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset>
<normaloff>../Icons/image-mobile-ui-svgrepo-com.svg</normaloff>../Icons/image-mobile-ui-svgrepo-com.svg</iconset>
</property>
<property name="iconSize">
<size>
<width>25</width>
<height>25</height>
</size>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QComboBox" name="PNGmethod">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string/>
</property>
<property name="whatsThis">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Alpha Composite:&lt;/span&gt; Best for images with some transparency but it can't do different size images.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Pillow Paste:&lt;/span&gt; Best for images with different sizes and positions, but it struggles with transparency.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Alpha Composite + Pillow Paste:&lt;/span&gt; Tries to combine the two for a better image, won't make promises.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Screenshot:&lt;/span&gt; Just takes a screenshot of the model.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Screenshot + Chroma Key:&lt;/span&gt; Just takes a screenshot of the model and tries to remove the background.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="maxVisibleItems">
<number>10</number>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToMinimumContentsLengthWithIcon</enum>
</property>
<item>
<property name="text">
<string>Select Method...</string>
</property>
</item>
<item>
<property name="text">
<string>Alpha Composite</string>
</property>
</item>
<item>
<property name="text">
<string>Pillow Paste</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
Expand Down Expand Up @@ -2156,129 +2292,6 @@ QFrame{
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_8">
<property name="title">
<string>Export PNG</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_35">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>23</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QFrame" name="audioFrame_2">
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="1">
<widget class="QPushButton" name="PNG">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="toolTip">
<string>Save PNG Image</string>
</property>
<property name="statusTip">
<string/>
</property>
<property name="whatsThis">
<string/>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset>
<normaloff>../Icons/image-mobile-ui-svgrepo-com.svg</normaloff>../Icons/image-mobile-ui-svgrepo-com.svg</iconset>
</property>
<property name="iconSize">
<size>
<width>25</width>
<height>25</height>
</size>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QComboBox" name="PNGmethod">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string/>
</property>
<property name="whatsThis">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Alpha Composite:&lt;/span&gt; Best for images with some transparency but it can't do different size images.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Pillow Paste:&lt;/span&gt; Best for images with different sizes and positions, but it struggles with transparency.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Alpha Composite + Pillow Paste:&lt;/span&gt; Tries to combine the two for a better image, won't make promises.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Screenshot:&lt;/span&gt; Just takes a screenshot of the model.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Screenshot + Chroma Key:&lt;/span&gt; Just takes a screenshot of the model and tries to remove the background.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="maxVisibleItems">
<number>10</number>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToMinimumContentsLengthWithIcon</enum>
</property>
<item>
<property name="text">
<string>Select Method...</string>
</property>
</item>
<item>
<property name="text">
<string>Alpha Composite</string>
</property>
</item>
<item>
<property name="text">
<string>Pillow Paste</string>
</property>
</item>
<item>
<property name="text">
<string>AlphaCom + PILPaste</string>
</property>
</item>
<item>
<property name="text">
<string>Screenshot</string>
</property>
</item>
<item>
<property name="text">
<string>Screenshot + Chroma Key</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_12">
<property name="styleSheet">
Expand Down
Loading

0 comments on commit 7ecaca9

Please sign in to comment.