Class RuneOverlay

All Implemented Interfaces:
Comparable<Content>, Senseable

public class RuneOverlay extends OverlayFloor
  • Field Details

    • characters

      public static final int characters
      See Also:
    • unicodeOffset

      public static final int unicodeOffset
      See Also:
    • letterRegions

      public arc.graphics.g2d.TextureRegion[] letterRegions
    • color

      public arc.graphics.Color color
  • Constructor Details

    • RuneOverlay

      public RuneOverlay(String name)
  • Method Details

    • bytesToString

      public static String bytesToString(byte[] data)
      Encodes rune data bytes into a string that can be displayed in the font.
    • stringToBytes

      public static byte[] stringToBytes(String s)
      Converts a displayable string into rune data bytes. Will generate garbage data if the string doesn't contain the right character set.
    • drawBase

      public void drawBase(Tile tile)
      Overrides:
      drawBase in class OverlayFloor
    • getConfig

      public Object getConfig(Tile tile)
      Overrides:
      getConfig in class Block
      Returns:
      the config value returned when this block is picked on a certain tile. This is only called for non-buildings.
    • drawPlanRegion

      public void drawPlanRegion(BuildPlan plan, arc.util.Eachable<BuildPlan> list)
      Overrides:
      drawPlanRegion in class Block
    • onPicked

      public void onPicked(Tile tile)
      Description copied from class: Block
      Called when the block is picked (middle click). Clientside only!
      Overrides:
      onPicked in class Block
    • buildEditorConfig

      public void buildEditorConfig(arc.scene.ui.layout.Table table)
      Description copied from class: Block
      Called to set up configuration UI in the editor. Block.editorConfigurable must be true. Config value should be assigned to lastConfig.
      Overrides:
      buildEditorConfig in class Block
    • placeEnded

      public void placeEnded(Tile tile, @Nullable mindustry.gen.Unit builder, int rotation, @Nullable Object config)
      Description copied from class: Block
      Called when building of this block ends.
      Overrides:
      placeEnded in class Block
    • editorPicked

      public void editorPicked(Tile tile)
      Description copied from class: Block
      Called when pick blocked in the editor.
      Overrides:
      editorPicked in class Block