mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-14 03:45:35 -05:00
Remove straight paths checkbox and refactor
This commit is contained in:
@@ -100,8 +100,6 @@ public:
|
||||
Q_INVOKABLE bool getBorderVisibility();
|
||||
Q_INVOKABLE void setSmartPathsEnabled(bool visible);
|
||||
Q_INVOKABLE bool getSmartPathsEnabled();
|
||||
Q_INVOKABLE void setStraightPathsEnabled(bool visible);
|
||||
Q_INVOKABLE bool getStraightPathsEnabled();
|
||||
Q_INVOKABLE void registerAction(QString functionName, QString actionName, QString shortcut = "");
|
||||
Q_INVOKABLE void setTimeout(QJSValue callback, int milliseconds);
|
||||
void invokeCallback(QJSValue callback);
|
||||
@@ -203,7 +201,6 @@ private slots:
|
||||
void on_comboBox_SecondaryTileset_currentTextChanged(const QString &arg1);
|
||||
void on_pushButton_ChangeDimensions_clicked();
|
||||
void on_checkBox_smartPaths_stateChanged(int selected);
|
||||
void on_checkBox_straightPaths_stateChanged(int selected);
|
||||
void on_checkBox_Visibility_clicked(bool checked);
|
||||
void on_checkBox_ToggleBorder_stateChanged(int arg1);
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ class Settings
|
||||
public:
|
||||
Settings();
|
||||
bool smartPathsEnabled;
|
||||
bool straightPathsEnabled;
|
||||
bool betterCursors;
|
||||
QCursor mapCursor;
|
||||
bool playerViewRectEnabled;
|
||||
|
||||
@@ -50,13 +50,12 @@ public:
|
||||
void stopAnchor();
|
||||
void initRightClickSelectionAnchor(int coordX, int coordY);
|
||||
void stopRightClickSelectionAnchor();
|
||||
void setSmartPathMode();
|
||||
void setSmartPathMode(bool enable);
|
||||
bool getSmartPathMode() { return this->smartPathMode; }
|
||||
void setStraightPathMode();
|
||||
void setStraightPathMode(bool enable);
|
||||
bool getStraightPathMode() { return this->straightPathMode; }
|
||||
void setSingleTileMode();
|
||||
void stopSingleTileMode();
|
||||
void setNormalPathMode();
|
||||
void updateLocation(int x, int y);
|
||||
void updateSelectionSize(int width, int height);
|
||||
void setVisibility(bool visible);
|
||||
@@ -76,7 +75,6 @@ private:
|
||||
int selectionHeight;
|
||||
QRgb color;
|
||||
bool smartPathInEffect();
|
||||
bool straightPathInEffect();
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user