2023-09-01 19:00:09 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<ui version="4.0">
|
|
|
|
<class>CustomScriptsEditor</class>
|
|
|
|
<widget class="QMainWindow" name="CustomScriptsEditor">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>0</x>
|
|
|
|
<y>0</y>
|
2024-10-16 19:23:28 +01:00
|
|
|
<width>582</width>
|
2023-09-01 19:00:09 +01:00
|
|
|
<height>355</height>
|
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
<property name="windowTitle">
|
|
|
|
<string>Custom Scripts Editor</string>
|
|
|
|
</property>
|
|
|
|
<widget class="QWidget" name="centralwidget">
|
|
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
|
|
<property name="spacing">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="leftMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="topMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="rightMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="bottomMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<item>
|
|
|
|
<widget class="QFrame" name="window">
|
|
|
|
<property name="frameShape">
|
2024-10-16 19:23:28 +01:00
|
|
|
<enum>QFrame::Shape::StyledPanel</enum>
|
2023-09-01 19:00:09 +01:00
|
|
|
</property>
|
|
|
|
<property name="frameShadow">
|
2024-10-16 19:23:28 +01:00
|
|
|
<enum>QFrame::Shadow::Raised</enum>
|
2023-09-01 19:00:09 +01:00
|
|
|
</property>
|
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
|
|
<item>
|
|
|
|
<widget class="QFrame" name="header">
|
|
|
|
<property name="frameShape">
|
2024-10-16 19:23:28 +01:00
|
|
|
<enum>QFrame::Shape::StyledPanel</enum>
|
2023-09-01 19:00:09 +01:00
|
|
|
</property>
|
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
2024-10-16 19:23:28 +01:00
|
|
|
<property name="leftMargin">
|
|
|
|
<number>6</number>
|
|
|
|
</property>
|
|
|
|
<property name="topMargin">
|
|
|
|
<number>6</number>
|
|
|
|
</property>
|
|
|
|
<property name="rightMargin">
|
|
|
|
<number>6</number>
|
|
|
|
</property>
|
|
|
|
<property name="bottomMargin">
|
|
|
|
<number>6</number>
|
|
|
|
</property>
|
2023-09-01 19:00:09 +01:00
|
|
|
<item>
|
2023-11-03 06:40:03 +00:00
|
|
|
<widget class="QPushButton" name="button_CreateNewScript">
|
|
|
|
<property name="toolTip">
|
|
|
|
<string>Create a new Porymap script file with a default template</string>
|
|
|
|
</property>
|
2023-09-01 19:00:09 +01:00
|
|
|
<property name="text">
|
2023-11-03 06:40:03 +00:00
|
|
|
<string>Create New Script...</string>
|
2023-09-01 19:00:09 +01:00
|
|
|
</property>
|
|
|
|
<property name="icon">
|
|
|
|
<iconset resource="../resources/images.qrc">
|
2023-11-03 06:40:03 +00:00
|
|
|
<normaloff>:/icons/file_add.ico</normaloff>:/icons/file_add.ico</iconset>
|
2023-09-01 19:00:09 +01:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
2023-11-03 06:40:03 +00:00
|
|
|
<widget class="QPushButton" name="button_LoadScript">
|
|
|
|
<property name="toolTip">
|
|
|
|
<string>Add an existing script file to the list below</string>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Load Script...</string>
|
|
|
|
</property>
|
|
|
|
<property name="icon">
|
|
|
|
<iconset resource="../resources/images.qrc">
|
|
|
|
<normaloff>:/icons/file_put.ico</normaloff>:/icons/file_put.ico</iconset>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QPushButton" name="button_RefreshScripts">
|
|
|
|
<property name="toolTip">
|
|
|
|
<string>Refresh all loaded scripts to account for any recent edits</string>
|
|
|
|
</property>
|
2023-09-01 19:00:09 +01:00
|
|
|
<property name="text">
|
2023-11-03 06:40:03 +00:00
|
|
|
<string>Refresh Scripts</string>
|
2023-09-01 19:00:09 +01:00
|
|
|
</property>
|
|
|
|
<property name="icon">
|
|
|
|
<iconset resource="../resources/images.qrc">
|
|
|
|
<normaloff>:/icons/refresh.ico</normaloff>:/icons/refresh.ico</iconset>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2024-10-16 19:23:28 +01:00
|
|
|
<item>
|
|
|
|
<spacer name="horizontalSpacer">
|
|
|
|
<property name="orientation">
|
|
|
|
<enum>Qt::Orientation::Horizontal</enum>
|
|
|
|
</property>
|
|
|
|
<property name="sizeHint" stdset="0">
|
|
|
|
<size>
|
|
|
|
<width>40</width>
|
|
|
|
<height>20</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
</spacer>
|
|
|
|
</item>
|
2023-09-01 19:00:09 +01:00
|
|
|
<item>
|
|
|
|
<spacer name="horizontalSpacer_header">
|
|
|
|
<property name="orientation">
|
2024-10-16 19:23:28 +01:00
|
|
|
<enum>Qt::Orientation::Horizontal</enum>
|
2023-09-01 19:00:09 +01:00
|
|
|
</property>
|
|
|
|
<property name="sizeHint" stdset="0">
|
|
|
|
<size>
|
|
|
|
<width>40</width>
|
|
|
|
<height>20</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
</spacer>
|
|
|
|
</item>
|
2024-10-16 19:23:28 +01:00
|
|
|
<item>
|
|
|
|
<widget class="QToolButton" name="button_Help">
|
|
|
|
<property name="text">
|
|
|
|
<string>...</string>
|
|
|
|
</property>
|
|
|
|
<property name="icon">
|
|
|
|
<iconset resource="../resources/images.qrc">
|
|
|
|
<normaloff>:/icons/help.ico</normaloff>:/icons/help.ico</iconset>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2023-09-01 19:00:09 +01:00
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QLabel" name="label_ListHeader">
|
|
|
|
<property name="text">
|
|
|
|
<string>Scripts</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QListWidget" name="list">
|
|
|
|
<property name="editTriggers">
|
2024-10-16 19:23:28 +01:00
|
|
|
<set>QAbstractItemView::EditTrigger::NoEditTriggers</set>
|
2023-09-01 19:00:09 +01:00
|
|
|
</property>
|
|
|
|
<property name="showDropIndicator" stdset="0">
|
|
|
|
<bool>false</bool>
|
|
|
|
</property>
|
|
|
|
<property name="dragDropMode">
|
2024-10-16 19:23:28 +01:00
|
|
|
<enum>QAbstractItemView::DragDropMode::DragOnly</enum>
|
2023-09-01 19:00:09 +01:00
|
|
|
</property>
|
|
|
|
<property name="defaultDropAction">
|
2024-10-16 19:23:28 +01:00
|
|
|
<enum>Qt::DropAction::IgnoreAction</enum>
|
2023-09-01 19:00:09 +01:00
|
|
|
</property>
|
|
|
|
<property name="selectionMode">
|
2024-10-16 19:23:28 +01:00
|
|
|
<enum>QAbstractItemView::SelectionMode::ExtendedSelection</enum>
|
2023-09-01 19:00:09 +01:00
|
|
|
</property>
|
|
|
|
<property name="textElideMode">
|
2024-10-16 19:23:28 +01:00
|
|
|
<enum>Qt::TextElideMode::ElideLeft</enum>
|
2023-09-01 19:00:09 +01:00
|
|
|
</property>
|
|
|
|
<property name="movement">
|
2024-10-16 19:23:28 +01:00
|
|
|
<enum>QListView::Movement::Free</enum>
|
2023-09-01 19:00:09 +01:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QDialogButtonBox" name="buttonBox">
|
|
|
|
<property name="standardButtons">
|
2024-10-16 19:23:28 +01:00
|
|
|
<set>QDialogButtonBox::StandardButton::Cancel|QDialogButtonBox::StandardButton::Ok</set>
|
2023-09-01 19:00:09 +01:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</widget>
|
|
|
|
<resources>
|
|
|
|
<include location="../resources/images.qrc"/>
|
|
|
|
</resources>
|
|
|
|
<connections/>
|
|
|
|
</ui>
|