Skip to content

Commit

Permalink
WIP two click stuff
Browse files Browse the repository at this point in the history
# Conflicts:
#	images/select-off.svg
#	layout/pages/zoning/zoning.xml
  • Loading branch information
PeenScreeker committed Aug 22, 2024
1 parent 78922db commit 7216804
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion images/select-off.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions scripts/pages/zoning/zoning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class ZoneMenu {
volumeSelect: $<DropDown>('#VolumeSelect')!,
regionSelect: $<DropDown>('#RegionSelect')!,
pointsSection: $<Panel>('#PointsSection')!,
pointSelectMode: $<ToggleButton>('#2PointMode')!,
pointsList: $<Panel>('#PointsList')!,
propertiesSection: $<Panel>('#PropertiesSection')!,
teleportSection: $<Panel>('#TeleportSection')!,
Expand Down Expand Up @@ -482,6 +483,12 @@ class ZoneMenu {
this.populateRegionProperties();
}

static toggle2PointMode () {
const newState = !this.panels.pointSelectMode.checked;
//this.panels.pointSelectMode.FindChildTraverse('Enabled')!.SetHasClass('hide', newState);
//this.panels.pointSelectMode.FindChildTraverse('Disabled')!.SetHasClass('hide', !newState);
}

static pickCorners() {
if (!this.selectedZone || !this.selectedZone.zone) return;

Expand Down

0 comments on commit 7216804

Please sign in to comment.