Skip to content

Use Core Icon Browser for 'Change Icon' (Schematics / Group Nodes / Sticky Notes)" #38

@tajemniktv

Description

@tajemniktv

Summary

In TajemnikTV-QoL, replace/override the existing “Change Icon” behavior so it opens the Core Icon Browser instead of the vanilla selector, across places that support custom icons:

  • Schematics (and schematic manager UI)
  • Group Nodes
  • Sticky Notes
  • (and) other icon-customizable UI

Motivation

  • Consistent icon picker UX everywhere
  • Core adds a richer icon set (base game + Core icons)
  • Single system other mods can also reuse

Requirements

1) Hook/override points

  • Identify where the vanilla “Change Icon” menu is opened for each target.
  • Replace that call with Core.IconBrowser.open(...).

2) Source coverage

  • Ensure the picker shows both:
    • base game icons
    • Core icons from mods-unpacked/TajemnikTV-Core/textures/icons
    • other mods (?) mods-unpacked/xxx/textures/icons

3) Data storage compatibility

  • Store chosen icon using the stable icon ID returned by Core (e.g. base:..., core:...).
  • add a mapping layer or fallback logic.

4) Graceful fallback

If Core is not installed / Icon Browser API is unavailable:

  • fall back to vanilla icon selection (or disable the QoL override cleanly)

Acceptance Criteria

  • “Change Icon” opens Core Icon Browser for schematics, group nodes, and sticky notes.
  • Selected icons apply correctly and persist after save/load.
  • No crashes if Core is missing; vanilla UI still works as fallback.
  • Works with icons from base game and Core icon directory.

Requires: TajsMods/Core#4

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions