Merge pull request #1133 from Joshua-F/refactor/widget
Refactor Widget defs
This commit is contained in:
@@ -40,9 +40,9 @@ public interface Widget
|
|||||||
|
|
||||||
void setContentType(int contentType);
|
void setContentType(int contentType);
|
||||||
|
|
||||||
int getConfig();
|
int setClickMask();
|
||||||
|
|
||||||
void setConfig(int config);
|
void setClickMask(int mask);
|
||||||
|
|
||||||
Widget getParent();
|
Widget getParent();
|
||||||
|
|
||||||
|
|||||||
@@ -386,7 +386,7 @@ public class ReorderPrayersPlugin extends Plugin
|
|||||||
Prayer prayer = prayerOrder[index];
|
Prayer prayer = prayerOrder[index];
|
||||||
Widget prayerWidget = prayerWidgets.get(prayer.ordinal());
|
Widget prayerWidget = prayerWidgets.get(prayer.ordinal());
|
||||||
|
|
||||||
int widgetConfig = prayerWidget.getConfig();
|
int widgetConfig = prayerWidget.setClickMask();
|
||||||
if (config.unlockPrayerReordering())
|
if (config.unlockPrayerReordering())
|
||||||
{
|
{
|
||||||
// allow dragging of this widget
|
// allow dragging of this widget
|
||||||
@@ -401,7 +401,7 @@ public class ReorderPrayersPlugin extends Plugin
|
|||||||
// remove drag on flag
|
// remove drag on flag
|
||||||
widgetConfig &= ~DRAG_ON;
|
widgetConfig &= ~DRAG_ON;
|
||||||
}
|
}
|
||||||
prayerWidget.setConfig(widgetConfig);
|
prayerWidget.setClickMask(widgetConfig);
|
||||||
|
|
||||||
int x = index % PRAYER_COLUMN_COUNT;
|
int x = index % PRAYER_COLUMN_COUNT;
|
||||||
int y = index / PRAYER_COLUMN_COUNT;
|
int y = index / PRAYER_COLUMN_COUNT;
|
||||||
|
|||||||
@@ -43,11 +43,11 @@ public interface RSWidget extends Widget
|
|||||||
@Import("parentId")
|
@Import("parentId")
|
||||||
int getRSParentId();
|
int getRSParentId();
|
||||||
|
|
||||||
@Import("config")
|
@Import("clickMask")
|
||||||
int getConfig();
|
int setClickMask();
|
||||||
|
|
||||||
@Import("config")
|
@Import("clickMask")
|
||||||
void setConfig(int config);
|
void setClickMask(int mask);
|
||||||
|
|
||||||
@Import("boundsIndex")
|
@Import("boundsIndex")
|
||||||
int getBoundsIndex();
|
int getBoundsIndex();
|
||||||
@@ -71,10 +71,10 @@ public interface RSWidget extends Widget
|
|||||||
@Import("text")
|
@Import("text")
|
||||||
String getRSText();
|
String getRSText();
|
||||||
|
|
||||||
@Import("name")
|
@Import("opBase")
|
||||||
String getRSName();
|
String getRSName();
|
||||||
|
|
||||||
@Import("name")
|
@Import("opBase")
|
||||||
void setRSName(String name);
|
void setRSName(String name);
|
||||||
|
|
||||||
@Import("text")
|
@Import("text")
|
||||||
|
|||||||
Reference in New Issue
Block a user