Skip to content

Commit

Permalink
update indicators
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed Dec 3, 2024
1 parent d621550 commit 60b1fb2
Showing 1 changed file with 2 additions and 71 deletions.
73 changes: 2 additions & 71 deletions src/utils/ObjectIDs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,76 +4,7 @@

using namespace geode::prelude;

class ObjectID {
private:
int m_id;

public:
ObjectID(int id) : m_id(id) {}

ccColor3B getTriggerColor() const {
switch (m_id) {
case MOVE_TRIGGER: case AREA_MOVE_TRIGGER: case EDIT_AREA_MOVE_TRIGGER:
return ccc3(255, 0, 255);

case ROTATE_TRIGGER: case AREA_ROTATE_TRIGGER: case EDIT_AREA_ROTATE_TRIGGER:
return ccc3(127, 127, 255);

case SCALE_TRIGGER: case AREA_SCALE_TRIGGER: case EDIT_AREA_SCALE_TRIGGER:
return ccc3(63, 191, 255);

case PULSE_TRIGGER: case AREA_TINT_TRIGGER: case EDIT_AREA_TINT_TRIGGER:
return ccc3(255, 255, 0);

case ALPHA_TRIGGER: case AREA_FADE_TRIGGER: case EDIT_AREA_FADE_TRIGGER:
return ccc3(0, 255, 255);

case TOGGLE_TRIGGER: return ccc3(255, 63, 63);
case SPAWN_TRIGGER: return ccc3(35, 204, 127);
case FOLLOW_TRIGGER: return ccc3(255, 127, 127);

case ADVANCED_FOLLOW_TRIGGER: case EDIT_ADVANCED_FOLLOW_TRIGGER: case RE_TARGET_ADVANCED_FOLLOW_TRIGGER:
return ccc3(204, 255, 199);

case ANIMATE_TRIGGER: return ccc3(255, 183, 0);
case FOLLOW_PLAYER_Y_TRIGGER: return ccc3(255, 255, 127);
case CHANGE_BG_TRIGGER: return ccc3(127, 255, 255);
case CHANGE_GROUND_TRIGGER: return ccc3(255, 255, 127);
case CHANGE_MIDGROUND_TRIGGER: return ccc3(255, 127, 255);
case TOUCH_TRIGGER: return ccc3(0, 137, 178);
case COUNT_TRIGGER: return ccc3(255, 183, 252);
case INSTANT_COUNT_TRIGGER: return ccc3(255, 135, 255);
case PICKUP_TRIGGER: return ccc3(255, 109, 0);
case RANDOM_TRIGGER: return ccc3(63, 127, 255);
case STOP_TRIGGER: return ccc3(163, 0, 86);

case ADVANCED_RANDOM_TRIGGER: case SEQUENCE_TRIGGER:
return ccc3(165, 94, 255);

case SPAWN_PARTICLE_TRIGGER: return ccc3(150, 150, 150);
case RESET_TRIGGER: return ccc3(255, 100, 0);
case CAMERA_ZOOM_TRIGGER: return ccc3(127, 127, 255);
case CAMERA_STATIC_TRIGGER: return ccc3(255, 127, 127);
case CAMERA_ROTATE_TRIGGER: return ccc3(255, 245, 0);
case CAMERA_EDGE_TRIGGER: return ccc3(0, 199, 255);
case CAMERA_MODE_TRIGGER: return ccc3(191, 255, 0);
case COLLISION_TRIGGER: return ccc3(83, 66, 250);
case TIME_WARP_TRIGGER: return ccc3(153, 127, 153);
case BG_SPEED_TRIGGER: return ccc3(127, 255, 255);
case ON_DEATH_TRIGGER: return ccc3(204, 101, 101);
case PLAYER_CONTROL_TRIGGER: return ccc3(101, 255, 255);

case MIDGROUND_SETUP_TRIGGER: case MIDGROUND_SPEED_TRIGGER:
return ccc3(255, 127, 255);

case CAMERA_OFFSET_TRIGGER: case CAMERA_GP_OFFSET_TRIGGER:
return ccc3(127, 255, 127);

default:
return ccWHITE;
}
}

namespace object_ids {
static constexpr int MOVE_TRIGGER = 901;
static constexpr int STOP_TRIGGER = 1616;
static constexpr int PULSE_TRIGGER = 1006;
Expand Down Expand Up @@ -125,4 +56,4 @@ class ObjectID {
static constexpr int INSTANT_COLLISION_TRIGGER = 3609;
static constexpr int ON_DEATH_TRIGGER = 1812;
static constexpr int PLAYER_CONTROL_TRIGGER = 1932;
};
}

0 comments on commit 60b1fb2

Please sign in to comment.