coastline 0.0.4
Loading...
Searching...
No Matches
decaleditor.h File Reference

The decal editor of the paint shop: the cursor, the palette and its color editor, the tools and the menus of their styles, and the dialog shown on exit from the paint shop. More...

#include <PR/ultratypes.h>
#include "sprite.h"
Include dependency graph for decaleditor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ScreenRect
 A rectangle of the screen of the paint shop, 640 by 480. More...
struct  PaletteSwatch
 A color of the palette of the decal, and where it is shown to be picked. More...
struct  DecalGlyph
 A character of the font of the decals, and its key on the keyboard of the text tool. More...

Macros

#define DECAL_SWATCHES   16
 The colors of the palette of a decal.
#define DECAL_SLOTS   10
 The decals of a car that the paint shop edits.
#define DECAL_GLYPHS   50
 The characters of the font of the decals, also the keys of the keyboard.
#define DECAL_TEXT_LENGTH   16
 The characters a text painted on a decal may have.
#define BRUSH_SIZES   5
 The sizes of the brush.

Enumerations

enum  {
  PAINT_TOOL_BRUSH_SIZE , PAINT_TOOL_BRUSH , PAINT_TOOL_FILL , PAINT_TOOL_LINE ,
  PAINT_TOOL_TEXT , PAINT_TOOL_RECTANGLE , PAINT_TOOL_OVAL , PAINT_TOOL_MIRROR ,
  PAINT_TOOL_CLEAR , PAINT_TOOL_LOAD , PAINT_TOOL_SAVE , PAINT_TOOL_UNDO ,
  PAINT_TOOL_EXIT , PAINT_TOOLS
}
 The tools of the paint shop, each a button. More...
enum  { RECT_STYLE_FILLED , RECT_STYLE_OUTLINED , RECT_STYLE_FILLED_ROUND , RECT_STYLE_OUTLINED_ROUND }
 The styles of the rectangle tool. More...
enum  { OVAL_STYLE_FILLED_ELLIPSE , OVAL_STYLE_OUTLINED_ELLIPSE , OVAL_STYLE_FILLED_CIRCLE , OVAL_STYLE_OUTLINED_CIRCLE }
 The styles of the oval tool. More...

Functions

void SaveDecalUndo (void)
 Save a copy of the decal being edited for undo, and count an edit.
void UndoDecalEdit (void)
 Restore the copy of the decal saved for undo.
void ProcessTextInputKeyboard (void)
 Run one frame of the keyboard of the text tool.
void ProcessColorEditorDialog (void)
 Run one frame of the color editor of the color in use.
void UpdateCursorFromInput (void)
 Move the cursor by the stick, the D-pad and the C buttons.
void ProcessDecalEditorInput (void)
 Deal with a frame of the input of the decal editor: the decals, the palette, the tools and painting.
s32 IsCursorInButton (Sprite *sprite)
 Whether the cursor is on a sprite as it is drawn.
s32 IsCursorInRect (ScreenRect *rect)
 Whether the cursor is in a rectangle.
s32 IsCursorInSwatch (PaletteSwatch *swatch)
 Whether the cursor is on a swatch of the palette.
s32 IsCursorOnKeyboardKey (DecalGlyph *key)
 Whether the cursor is on a key of the keyboard.
void ConvertPaletteToRgb (void)
 Set the colors of the swatches from the palette of the decal.
void DrawDecalColorPalette (void)
 Draw the palette, with the color in use outlined.
void ProcessBrushStyleMenu (void)
 Run one frame of the menu of the styles of the brush tool.
void ProcessTextStyleMenu (void)
 Run one frame of the menu of the styles of the text tool, and of its colors of the shadow.
void ProcessRectStyleMenu (void)
 Run one frame of the menu of the styles of the rectangle tool.
void ProcessOvalStyleMenu (void)
 Run one frame of the menu of the styles of the oval tool.
void ProcessPaintShopExitConfirm (void)
 Run one frame of the dialog that warns of edits not saved on exit from the paint shop, or fade out at once when there are none.
void ResetBrushAndSlotHistory (void)
 Set the brush to its size and every remembered decal to the decal being edited.

Variables

Sprite g_texPaintToolBrush
 The picture of the brush tool, whose style is round or square.
Sprite g_texPaintToolText
 The picture of the text tool, whose style is the drop shadow.
Sprite g_texPaintToolRect
 The picture of the rectangle tool, whose style is RECT_STYLE_.
Sprite g_texPaintToolOval
 The picture of the oval tool, whose style is OVAL_STYLE_.
Sprite g_texPaintToolClear
 The picture of the clear tool.
Sprite g_texPaintCursor
 The cursor, whose origin is where it points.
Sprite g_texKeyboardHighlight
 The highlight of a key of the keyboard, the size of a key.
Sprite g_texDecalFont
 The font of the decals, 16 texels to a character.
Sprite g_texPaintShapeFilledCircle
 The icon of the round brush.
ScreenRect g_rcDecalCanvasFrame [3]
 Three contiguous paint shop frames, starting with the area around the decal.
ScreenRect g_rcPaletteFrameLeft
 The black area behind the two wide swatches of the palette.
ScreenRect g_rcPaletteFrameRight
 The black area behind the narrow swatches of the palette, right of the wide ones.
ScreenRect g_aBrushSizeRects [BRUSH_SIZES]
 The sizes of the brush, in texels, as rectangles.
ScreenRect g_aBrushSizeButtonRects [BRUSH_SIZES]
 The buttons of the sizes of the brush.
DecalGlyph g_aDecalGlyphs [DECAL_GLYPHS]
 The characters of the font of the decals.
u8 g_bDashColorA
 The colors of the marching dashes of a shape not yet drawn.
u8 g_bDashColorB
 The second colour of the marching dashes of a shape not yet drawn.
u8 g_bBrushSize
 The size of the brush, an index of g_aBrushSizeRects.
ScreenRect g_rcBrush
 The rectangle of the size of the brush.
Sprite * g_pDecalSlotIcon
 The icon of the decal being edited.
Sprite * g_apDecalSlotIcons [DECAL_SLOTS]
 The icons of the decals.
Sprite * g_apRectStyleIcons [4]
 The icons of the styles of the rectangle tool.
Sprite * g_apOvalStyleIcons [4]
 The icons of the styles of the oval tool.
u8 g_bSavedColor
 The color picked before the last, or the shadow color the text menu restores.
u8 g_bDecalColor
 The color painted with, an index of the palette.
u8 g_bTextShadowColor
 The color of the shadow of text.
u8 g_bPaintTool
 The tool in use, a PAINT_TOOL_ value.
u8 g_bPreviousPaintTool
 The tool in use before the last was picked.
u8 g_bDecalSlot
 The decal being edited.
u8 g_bPreviousDecalSlot
 The decal edited before the last was picked.
u8 g_bSavedDecalSlot
 The decal slot selected before a tool temporarily visits every slot.
u8 g_bUndoDecalSlot
 The decal the copy that undo restores was taken of.
u8 * g_pDecalTexels
 The texels of the decal being edited, 4 bits each.
u8 * g_pDecalMask
 The mask of the decal being edited, or NULL.
u8 * g_pDecalScratchTexels
 A copy of the texels the flood fill works in.
u8 g_bDecalWidth
 The size of the decal being edited, in texels.
u8 g_bDecalHeight
 The height of the decal being edited, in texels.
u16 * g_pDecalPalette
 The palette of the decal being edited, in RGBA 5551.
ScreenRect g_rcDecalCanvas
 Where the decal is shown, 4 pixels to a texel.
u8 g_bDecalTextLength
 The characters of the text to paint.
u8 g_bDecalTextWidth
 The width of the text to paint, in texels.
u8 g_bDecalEditCount
 The edits not saved, for the warning on exit.
u8 g_bStyleMenuCursor
 The style under the cursor of a style menu.
u8 g_bPaintShopPlayer
 The player who paints, an index of g_aPlayerInputState.
u8 g_bPaintToolStarted
 Set while a tool waits for its second click.
u8 g_bDecalDragActive
 Set while a press on the decal is being dealt with.
u8 g_bPaletteEnabled
 Whether the palette can be clicked.
u8 g_bDecalSlotHasMirror
 Whether the decal being edited has a mirror image.
u8 g_bDecalSlotChanged
 Set when another decal is picked.
u8 g_bColorEditorOpen
 Whether the color editor is open.
u8 g_bStyleMenuOpen
 Whether the menu of the styles of the tool is open.
u8 g_bTextShadowPickerOpen
 Whether the text menu shows the colors of the shadow.
u8 g_bPaintShopExiting
 Set once the paint shop fades out.
u8 g_aabColorEditorBars [3][3]
 The colors of the bars of the color editor.
const char * g_apszColorChannelNames [3]
 The names of the bars of the color editor.
u8 g_bColorEditorChannel
 The bar of the color editor under its cursor.
const char * g_apszBrushStyleNames [2]
 The names of the styles of the brush tool.
const char * g_apszTextStyleNames [2]
 The names of the styles of the text tool.
const char * g_apszRectStyleNames [4]
 The names of the styles of the rectangle tool.
const char * g_apszOvalStyleNames [4]
 The names of the styles of the oval tool.
PaletteSwatch g_aDecalSwatches [DECAL_SWATCHES]
 The palette of the decal as it is shown.
ScreenRect g_aPaintToolButtonRects [PAINT_TOOLS]
 The buttons of the tools.
u8 g_abSavedSwatchColor [3]
 The color the color editor restores when it is cancelled.
ScreenRect g_aDecalSlotRects [DECAL_SLOTS]
 The buttons of the decals.
DecalGlyph * g_apDecalTextGlyphs [DECAL_TEXT_LENGTH]
 The glyphs of the text to paint.

Detailed Description

The decal editor of the paint shop: the cursor, the palette and its color editor, the tools and the menus of their styles, and the dialog shown on exit from the paint shop.

Macro Definition Documentation

◆ DECAL_SWATCHES

#define DECAL_SWATCHES   16

The colors of the palette of a decal.

◆ DECAL_SLOTS

#define DECAL_SLOTS   10

The decals of a car that the paint shop edits.

◆ DECAL_GLYPHS

#define DECAL_GLYPHS   50

The characters of the font of the decals, also the keys of the keyboard.

◆ DECAL_TEXT_LENGTH

#define DECAL_TEXT_LENGTH   16

The characters a text painted on a decal may have.

◆ BRUSH_SIZES

#define BRUSH_SIZES   5

The sizes of the brush.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

The tools of the paint shop, each a button.

Enumerator
PAINT_TOOL_BRUSH_SIZE 

The buttons that pick the size of the brush.

PAINT_TOOL_BRUSH 

The brush, painting round or square dots.

PAINT_TOOL_FILL 

The flood fill.

PAINT_TOOL_LINE 

A straight line from an anchor to the cursor.

PAINT_TOOL_TEXT 

A text typed on the keyboard of the font of the decals.

PAINT_TOOL_RECTANGLE 

A rectangle in one of the RECT_STYLE_ styles.

PAINT_TOOL_OVAL 

An ellipse or a circle in one of the OVAL_STYLE_ styles.

PAINT_TOOL_MIRROR 

The menu that mirrors or flips the decal.

PAINT_TOOL_CLEAR 

The menu that fills or clears the decal.

PAINT_TOOL_LOAD 

The dialog that loads decals from a Controller Pak.

PAINT_TOOL_SAVE 

The dialog that saves decals to a Controller Pak.

PAINT_TOOL_UNDO 

Undo the last edit and return to the previous tool.

PAINT_TOOL_EXIT 

The dialog that confirms the exit from the paint shop.

PAINT_TOOLS 

The number of tools.

◆ anonymous enum

anonymous enum

The styles of the rectangle tool.

Enumerator
RECT_STYLE_FILLED 

A filled rectangle.

RECT_STYLE_OUTLINED 

The outline of a rectangle.

RECT_STYLE_FILLED_ROUND 

A filled rectangle with rounded corners.

RECT_STYLE_OUTLINED_ROUND 

The outline of a rectangle with rounded corners.

◆ anonymous enum

anonymous enum

The styles of the oval tool.

Enumerator
OVAL_STYLE_FILLED_ELLIPSE 

A filled ellipse in the box from the anchor to the cursor.

OVAL_STYLE_OUTLINED_ELLIPSE 

The outline of an ellipse in the same box.

OVAL_STYLE_FILLED_CIRCLE 

A filled circle about the anchor, out to the cursor.

OVAL_STYLE_OUTLINED_CIRCLE 

The outline of a circle about the anchor.

Function Documentation

◆ SaveDecalUndo()

void SaveDecalUndo ( void )

Save a copy of the decal being edited for undo, and count an edit.

Ghidra address:
USA: 0x80244ca8
Ghidra address:
Asia: 0x802447F8
Ghidra address:
EUR: 0x802461cc
Ghidra address:
JPN: 0x80245cc0

◆ UndoDecalEdit()

void UndoDecalEdit ( void )

Restore the copy of the decal saved for undo.

Ghidra address:
USA: 0x80244d04
Ghidra address:
Asia: 0x80244854
Ghidra address:
EUR: 0x80246228
Ghidra address:
JPN: 0x80245d1c

◆ ProcessTextInputKeyboard()

void ProcessTextInputKeyboard ( void )

Run one frame of the keyboard of the text tool.

Ghidra address:
USA: 0x8024ac70
Ghidra address:
Asia: 0x8024A7C0
Ghidra address:
EUR: 0x8024c1d0
Ghidra address:
JPN: 0x8024bbd0

◆ ProcessColorEditorDialog()

void ProcessColorEditorDialog ( void )

Run one frame of the color editor of the color in use.

Ghidra address:
USA: 0x8024b144
Ghidra address:
Asia: 0x8024AC94
Ghidra address:
EUR: 0x8024c6a8
Ghidra address:
JPN: 0x8024c0a8

◆ UpdateCursorFromInput()

void UpdateCursorFromInput ( void )

Move the cursor by the stick, the D-pad and the C buttons.

Ghidra address:
USA: 0x8024be78
Ghidra address:
Asia: 0x8024B9C8
Ghidra address:
EUR: 0x8024d3dc
Ghidra address:
JPN: 0x8024cddc

◆ ProcessDecalEditorInput()

void ProcessDecalEditorInput ( void )

Deal with a frame of the input of the decal editor: the decals, the palette, the tools and painting.

Ghidra address:
USA: 0x8024c184
Ghidra address:
Asia: 0x8024BCD4
Ghidra address:
EUR: 0x8024d6e8
Ghidra address:
JPN: 0x8024d0e8

◆ IsCursorInButton()

s32 IsCursorInButton ( Sprite * sprite)

Whether the cursor is on a sprite as it is drawn.

Parameters
spriteThe sprite.
Returns
Whether it is, the edges included.
Ghidra address:
USA: 0x8024d374
Ghidra address:
Asia: 0x8024CEC4
Ghidra address:
EUR: 0x8024e8d8
Ghidra address:
JPN: 0x8024e2b8

◆ IsCursorInRect()

s32 IsCursorInRect ( ScreenRect * rect)

Whether the cursor is in a rectangle.

Parameters
rectThe rectangle.
Returns
Whether it is, the edges included.
Ghidra address:
USA: 0x8024d3f0
Ghidra address:
Asia: 0x8024CF40
Ghidra address:
EUR: 0x8024e954
Ghidra address:
JPN: 0x8024e334

◆ IsCursorInSwatch()

s32 IsCursorInSwatch ( PaletteSwatch * swatch)

Whether the cursor is on a swatch of the palette.

Parameters
swatchThe swatch.
Returns
Whether it is, the edges included.
Ghidra address:
USA: 0x8024d45c
Ghidra address:
Asia: 0x8024CFAC
Ghidra address:
EUR: 0x8024e9c0
Ghidra address:
JPN: 0x8024e3a0

◆ IsCursorOnKeyboardKey()

s32 IsCursorOnKeyboardKey ( DecalGlyph * key)

Whether the cursor is on a key of the keyboard.

Parameters
keyThe key.
Returns
Whether it is, the edges included.
Ghidra address:
USA: 0x8024d4c8
Ghidra address:
Asia: 0x8024D018
Ghidra address:
EUR: 0x8024ea2c
Ghidra address:
JPN: 0x8024e40c

◆ ConvertPaletteToRgb()

void ConvertPaletteToRgb ( void )

Set the colors of the swatches from the palette of the decal.

Ghidra address:
USA: 0x8024d53c
Ghidra address:
Asia: 0x8024D08C
Ghidra address:
EUR: 0x8024eaa0
Ghidra address:
JPN: 0x8024e480

◆ DrawDecalColorPalette()

void DrawDecalColorPalette ( void )

Draw the palette, with the color in use outlined.

Ghidra address:
USA: 0x8024d6b8
Ghidra address:
Asia: 0x8024D208
Ghidra address:
EUR: 0x8024ec1c
Ghidra address:
JPN: 0x8024e5fc

◆ ProcessBrushStyleMenu()

void ProcessBrushStyleMenu ( void )

Run one frame of the menu of the styles of the brush tool.

Ghidra address:
USA: 0x8024d89c
Ghidra address:
Asia: 0x8024D3EC
Ghidra address:
EUR: 0x8024ee00
Ghidra address:
JPN: 0x8024e7e0

◆ ProcessTextStyleMenu()

void ProcessTextStyleMenu ( void )

Run one frame of the menu of the styles of the text tool, and of its colors of the shadow.

Ghidra address:
USA: 0x8024e128
Ghidra address:
Asia: 0x8024DC78
Ghidra address:
EUR: 0x8024f68c
Ghidra address:
JPN: 0x8024efec

◆ ProcessRectStyleMenu()

void ProcessRectStyleMenu ( void )

Run one frame of the menu of the styles of the rectangle tool.

Ghidra address:
USA: 0x8024f39c
Ghidra address:
Asia: 0x8024EEEC
Ghidra address:
EUR: 0x80250900
Ghidra address:
JPN: 0x802501c4

◆ ProcessOvalStyleMenu()

void ProcessOvalStyleMenu ( void )

Run one frame of the menu of the styles of the oval tool.

Ghidra address:
USA: 0x80250698
Ghidra address:
Asia: 0x802501E8
Ghidra address:
EUR: 0x80251bfc
Ghidra address:
JPN: 0x80251434

◆ ProcessPaintShopExitConfirm()

void ProcessPaintShopExitConfirm ( void )

Run one frame of the dialog that warns of edits not saved on exit from the paint shop, or fade out at once when there are none.

Ghidra address:
USA: 0x802531c0
Ghidra address:
Asia: 0x80252D10
Ghidra address:
EUR: 0x80254728
Ghidra address:
JPN: 0x80253ed4

◆ ResetBrushAndSlotHistory()

void ResetBrushAndSlotHistory ( void )

Set the brush to its size and every remembered decal to the decal being edited.

Ghidra address:
USA: 0x802533f4
Ghidra address:
Asia: 0x80252F44
Ghidra address:
EUR: 0x8025495c
Ghidra address:
JPN: 0x80254140

Variable Documentation

◆ g_texPaintToolBrush

Sprite g_texPaintToolBrush
extern

The picture of the brush tool, whose style is round or square.

Ghidra address:
USA: 0x8028ce70
Ghidra address:
Asia: 0x8028C9C0
Ghidra address:
EUR: 0x8028f5d0
Ghidra address:
JPN: 0x8028f040

◆ g_texPaintToolText

Sprite g_texPaintToolText
extern

The picture of the text tool, whose style is the drop shadow.

Ghidra address:
USA: 0x8028cf00
Ghidra address:
Asia: 0x8028CA50
Ghidra address:
EUR: 0x8028f660
Ghidra address:
JPN: 0x8028f0d0

◆ g_texPaintToolRect

Sprite g_texPaintToolRect
extern

The picture of the rectangle tool, whose style is RECT_STYLE_.

Ghidra address:
USA: 0x8028cf30
Ghidra address:
Asia: 0x8028CA80
Ghidra address:
EUR: 0x8028f690
Ghidra address:
JPN: 0x8028f100

◆ g_texPaintToolOval

Sprite g_texPaintToolOval
extern

The picture of the oval tool, whose style is OVAL_STYLE_.

Ghidra address:
USA: 0x8028cf60
Ghidra address:
Asia: 0x8028CAB0
Ghidra address:
EUR: 0x8028f6c0
Ghidra address:
JPN: 0x8028f130

◆ g_texPaintToolClear

Sprite g_texPaintToolClear
extern

The picture of the clear tool.

Ghidra address:
USA: 0x8028cfc0
Ghidra address:
Asia: 0x8028CB10
Ghidra address:
EUR: 0x8028f720
Ghidra address:
JPN: 0x8028f190

◆ g_texPaintCursor

Sprite g_texPaintCursor
extern

The cursor, whose origin is where it points.

Ghidra address:
USA: 0x8028d110
Ghidra address:
Asia: 0x8028CC60
Ghidra address:
EUR: 0x8028f870
Ghidra address:
JPN: 0x8028f2e0

◆ g_texKeyboardHighlight

Sprite g_texKeyboardHighlight
extern

The highlight of a key of the keyboard, the size of a key.

Ghidra address:
USA: 0x8028d290
Ghidra address:
Asia: 0x8028CDE0
Ghidra address:
EUR: 0x8028f9f0
Ghidra address:
JPN: 0x8028f460

◆ g_texDecalFont

Sprite g_texDecalFont
extern

The font of the decals, 16 texels to a character.

Ghidra address:
USA: 0x8028d2c0
Ghidra address:
Asia: 0x8028CE10
Ghidra address:
EUR: 0x8028fa20
Ghidra address:
JPN: 0x8028f490

◆ g_texPaintShapeFilledCircle

Sprite g_texPaintShapeFilledCircle
extern

The icon of the round brush.

Ghidra address:
USA: 0x8028d410
Ghidra address:
Asia: 0x8028CF60
Ghidra address:
EUR: 0x8028fb70
Ghidra address:
JPN: 0x8028f5e0

◆ g_rcDecalCanvasFrame

ScreenRect g_rcDecalCanvasFrame[3]
extern

Three contiguous paint shop frames, starting with the area around the decal.

Ghidra address:
USA: 0x8028d470
Ghidra address:
Asia: 0x8028CFC0
Ghidra address:
EUR: 0x8028fbd0
Ghidra address:
JPN: 0x8028f640

◆ g_rcPaletteFrameLeft

ScreenRect g_rcPaletteFrameLeft
extern

The black area behind the two wide swatches of the palette.

Ghidra address:
USA: 0x8028d480
Ghidra address:
Asia: 0x8028CFD0
Ghidra address:
EUR: 0x8028fbe0
Ghidra address:
JPN: 0x8028f650

◆ g_rcPaletteFrameRight

ScreenRect g_rcPaletteFrameRight
extern

The black area behind the narrow swatches of the palette, right of the wide ones.

Ghidra address:
USA: 0x8028d490
Ghidra address:
Asia: 0x8028CFE0
Ghidra address:
EUR: 0x8028fbf0
Ghidra address:
JPN: 0x8028f660

◆ g_aBrushSizeRects

ScreenRect g_aBrushSizeRects[BRUSH_SIZES]
extern

The sizes of the brush, in texels, as rectangles.

Ghidra address:
USA: 0x8028d4a0
Ghidra address:
Asia: 0x8028CFF0
Ghidra address:
EUR: 0x8028fc00
Ghidra address:
JPN: 0x8028f670

◆ g_aBrushSizeButtonRects

ScreenRect g_aBrushSizeButtonRects[BRUSH_SIZES]
extern

The buttons of the sizes of the brush.

Ghidra address:
USA: 0x8028d4f0
Ghidra address:
Asia: 0x8028D040
Ghidra address:
EUR: 0x8028fc50
Ghidra address:
JPN: 0x8028f6c0

◆ g_aDecalGlyphs

DecalGlyph g_aDecalGlyphs[DECAL_GLYPHS]
extern

The characters of the font of the decals.

Ghidra address:
USA: 0x8028d540
Ghidra address:
Asia: 0x8028D090
Ghidra address:
EUR: 0x8028fca0
Ghidra address:
JPN: 0x8028f710

◆ g_bDashColorA

u8 g_bDashColorA
extern

The colors of the marching dashes of a shape not yet drawn.

Ghidra address:
USA: 0x8028dab8
Ghidra address:
Asia: 0x8028D608
Ghidra address:
EUR: 0x80290218
Ghidra address:
JPN: 0x8028fc88

◆ g_bDashColorB

u8 g_bDashColorB
extern

The second colour of the marching dashes of a shape not yet drawn.

Ghidra address:
USA: 0x8028dabc
Ghidra address:
Asia: 0x8028D60C
Ghidra address:
EUR: 0x8029021c
Ghidra address:
JPN: 0x8028fc8c

◆ g_bBrushSize

u8 g_bBrushSize
extern

The size of the brush, an index of g_aBrushSizeRects.

Ghidra address:
USA: 0x8028dac0
Ghidra address:
Asia: 0x8028D610
Ghidra address:
EUR: 0x80290220
Ghidra address:
JPN: 0x8028fc90

◆ g_rcBrush

ScreenRect g_rcBrush
extern

The rectangle of the size of the brush.

Ghidra address:
USA: 0x8028dac4
Ghidra address:
Asia: 0x8028D614
Ghidra address:
EUR: 0x80290224
Ghidra address:
JPN: 0x8028fc94

◆ g_pDecalSlotIcon

Sprite* g_pDecalSlotIcon
extern

The icon of the decal being edited.

Ghidra address:
USA: 0x8028db08
Ghidra address:
Asia: 0x8028D658
Ghidra address:
EUR: 0x80290268
Ghidra address:
JPN: 0x8028fcd8

◆ g_apDecalSlotIcons

Sprite* g_apDecalSlotIcons[DECAL_SLOTS]
extern

The icons of the decals.

Ghidra address:
USA: 0x8028db0c
Ghidra address:
Asia: 0x8028D65C
Ghidra address:
EUR: 0x8029026c
Ghidra address:
JPN: 0x8028fcdc

◆ g_apRectStyleIcons

Sprite* g_apRectStyleIcons[4]
extern

The icons of the styles of the rectangle tool.

Ghidra address:
USA: 0x8028db34
Ghidra address:
Asia: 0x8028D684
Ghidra address:
EUR: 0x80290294
Ghidra address:
JPN: 0x8028fd04

◆ g_apOvalStyleIcons

Sprite* g_apOvalStyleIcons[4]
extern

The icons of the styles of the oval tool.

Ghidra address:
USA: 0x8028db44
Ghidra address:
Asia: 0x8028D694
Ghidra address:
EUR: 0x802902a4
Ghidra address:
JPN: 0x8028fd14

◆ g_bSavedColor

u8 g_bSavedColor
extern

The color picked before the last, or the shadow color the text menu restores.

Ghidra address:
USA: 0x8028db54
Ghidra address:
Asia: 0x8028D6A4
Ghidra address:
EUR: 0x802902b4
Ghidra address:
JPN: 0x8028fd24

◆ g_bDecalColor

u8 g_bDecalColor
extern

The color painted with, an index of the palette.

Ghidra address:
USA: 0x8028db58
Ghidra address:
Asia: 0x8028D6A8
Ghidra address:
EUR: 0x802902b8
Ghidra address:
JPN: 0x8028fd28

◆ g_bTextShadowColor

u8 g_bTextShadowColor
extern

The color of the shadow of text.

Ghidra address:
USA: 0x8028db5c
Ghidra address:
Asia: 0x8028D6AC
Ghidra address:
EUR: 0x802902bc
Ghidra address:
JPN: 0x8028fd2c

◆ g_bPaintTool

u8 g_bPaintTool
extern

The tool in use, a PAINT_TOOL_ value.

Ghidra address:
USA: 0x8028db60
Ghidra address:
Asia: 0x8028D6B0
Ghidra address:
EUR: 0x802902c0
Ghidra address:
JPN: 0x8028fd30

◆ g_bPreviousPaintTool

u8 g_bPreviousPaintTool
extern

The tool in use before the last was picked.

Ghidra address:
USA: 0x8028db64
Ghidra address:
Asia: 0x8028D6B4
Ghidra address:
EUR: 0x802902c4
Ghidra address:
JPN: 0x8028fd34

◆ g_bDecalSlot

u8 g_bDecalSlot
extern

The decal being edited.

Ghidra address:
USA: 0x8028db68
Ghidra address:
Asia: 0x8028D6B8
Ghidra address:
EUR: 0x802902c8
Ghidra address:
JPN: 0x8028fd38

◆ g_bPreviousDecalSlot

u8 g_bPreviousDecalSlot
extern

The decal edited before the last was picked.

Ghidra address:
USA: 0x8028db6c
Ghidra address:
Asia: 0x8028D6BC
Ghidra address:
EUR: 0x802902cc
Ghidra address:
JPN: 0x8028fd3c

◆ g_bSavedDecalSlot

u8 g_bSavedDecalSlot
extern

The decal slot selected before a tool temporarily visits every slot.

Ghidra address:
USA: 0x8028db70
Ghidra address:
Asia: 0x8028D6C0
Ghidra address:
EUR: 0x802902d0
Ghidra address:
JPN: 0x8028fd40

◆ g_bUndoDecalSlot

u8 g_bUndoDecalSlot
extern

The decal the copy that undo restores was taken of.

Ghidra address:
USA: 0x8028db74
Ghidra address:
Asia: 0x8028D6C4
Ghidra address:
EUR: 0x802902d4
Ghidra address:
JPN: 0x8028fd44

◆ g_pDecalTexels

u8* g_pDecalTexels
extern

The texels of the decal being edited, 4 bits each.

Ghidra address:
USA: 0x8028db78
Ghidra address:
Asia: 0x8028D6C8
Ghidra address:
EUR: 0x802902d8
Ghidra address:
JPN: 0x8028fd48

◆ g_pDecalMask

u8* g_pDecalMask
extern

The mask of the decal being edited, or NULL.

Ghidra address:
USA: 0x8028db7c
Ghidra address:
Asia: 0x8028D6CC
Ghidra address:
EUR: 0x802902dc
Ghidra address:
JPN: 0x8028fd4c

◆ g_pDecalScratchTexels

u8* g_pDecalScratchTexels
extern

A copy of the texels the flood fill works in.

Ghidra address:
USA: 0x8028db84
Ghidra address:
Asia: 0x8028D6D4
Ghidra address:
EUR: 0x802902e4
Ghidra address:
JPN: 0x8028fd54

◆ g_bDecalWidth

u8 g_bDecalWidth
extern

The size of the decal being edited, in texels.

Ghidra address:
USA: 0x8028db88
Ghidra address:
Asia: 0x8028D6D8
Ghidra address:
EUR: 0x802902e8
Ghidra address:
JPN: 0x8028fd58

◆ g_bDecalHeight

u8 g_bDecalHeight
extern

The height of the decal being edited, in texels.

Ghidra address:
USA: 0x8028db8c
Ghidra address:
Asia: 0x8028D6DC
Ghidra address:
EUR: 0x802902ec
Ghidra address:
JPN: 0x8028fd5c

◆ g_pDecalPalette

u16* g_pDecalPalette
extern

The palette of the decal being edited, in RGBA 5551.

Ghidra address:
USA: 0x8028db90
Ghidra address:
Asia: 0x8028D6E0
Ghidra address:
EUR: 0x802902f0
Ghidra address:
JPN: 0x8028fd60

◆ g_rcDecalCanvas

ScreenRect g_rcDecalCanvas
extern

Where the decal is shown, 4 pixels to a texel.

Ghidra address:
USA: 0x8028db94
Ghidra address:
Asia: 0x8028D6E4
Ghidra address:
EUR: 0x802902f4
Ghidra address:
JPN: 0x8028fd64

◆ g_bDecalTextLength

u8 g_bDecalTextLength
extern

The characters of the text to paint.

Ghidra address:
USA: 0x8028dba8
Ghidra address:
Asia: 0x8028D6F8
Ghidra address:
EUR: 0x80290308
Ghidra address:
JPN: 0x8028fd78

◆ g_bDecalTextWidth

u8 g_bDecalTextWidth
extern

The width of the text to paint, in texels.

Ghidra address:
USA: 0x8028dbac
Ghidra address:
Asia: 0x8028D6FC
Ghidra address:
EUR: 0x8029030c
Ghidra address:
JPN: 0x8028fd7c

◆ g_bDecalEditCount

u8 g_bDecalEditCount
extern

The edits not saved, for the warning on exit.

Ghidra address:
USA: 0x8028dbb4
Ghidra address:
Asia: 0x8028D704
Ghidra address:
EUR: 0x80290314
Ghidra address:
JPN: 0x8028fd84

◆ g_bStyleMenuCursor

u8 g_bStyleMenuCursor
extern

The style under the cursor of a style menu.

Ghidra address:
USA: 0x8028dbb8
Ghidra address:
Asia: 0x8028D708
Ghidra address:
EUR: 0x80290318
Ghidra address:
JPN: 0x8028fd88

◆ g_bPaintShopPlayer

u8 g_bPaintShopPlayer
extern

The player who paints, an index of g_aPlayerInputState.

Ghidra address:
USA: 0x8028dbbc
Ghidra address:
Asia: 0x8028D70C
Ghidra address:
EUR: 0x8029031c
Ghidra address:
JPN: 0x8028fd8c

◆ g_bPaintToolStarted

u8 g_bPaintToolStarted
extern

Set while a tool waits for its second click.

Opening the menu of the styles of a tool sets it too, and the menu clears it.

Ghidra address:
USA: 0x8028dbc0
Ghidra address:
Asia: 0x8028D710
Ghidra address:
EUR: 0x80290320
Ghidra address:
JPN: 0x8028fd90

◆ g_bDecalDragActive

u8 g_bDecalDragActive
extern

Set while a press on the decal is being dealt with.

Ghidra address:
USA: 0x8028dbc4
Ghidra address:
Asia: 0x8028D714
Ghidra address:
EUR: 0x80290324
Ghidra address:
JPN: 0x8028fd94

◆ g_bPaletteEnabled

u8 g_bPaletteEnabled
extern

Whether the palette can be clicked.

Ghidra address:
USA: 0x8028dbc8
Ghidra address:
Asia: 0x8028D718
Ghidra address:
EUR: 0x80290328
Ghidra address:
JPN: 0x8028fd98

◆ g_bDecalSlotHasMirror

u8 g_bDecalSlotHasMirror
extern

Whether the decal being edited has a mirror image.

Ghidra address:
USA: 0x8028dbcc
Ghidra address:
Asia: 0x8028D71C
Ghidra address:
EUR: 0x8029032c
Ghidra address:
JPN: 0x8028fd9c

◆ g_bDecalSlotChanged

u8 g_bDecalSlotChanged
extern

Set when another decal is picked.

Ghidra address:
USA: 0x8028dbd0
Ghidra address:
Asia: 0x8028D720
Ghidra address:
EUR: 0x80290330
Ghidra address:
JPN: 0x8028fda0

◆ g_bColorEditorOpen

u8 g_bColorEditorOpen
extern

Whether the color editor is open.

Ghidra address:
USA: 0x8028dbd4
Ghidra address:
Asia: 0x8028D724
Ghidra address:
EUR: 0x80290334
Ghidra address:
JPN: 0x8028fda4

◆ g_bStyleMenuOpen

u8 g_bStyleMenuOpen
extern

Whether the menu of the styles of the tool is open.

Ghidra address:
USA: 0x8028dbe0
Ghidra address:
Asia: 0x8028D730
Ghidra address:
EUR: 0x80290340
Ghidra address:
JPN: 0x8028fdb0

◆ g_bTextShadowPickerOpen

u8 g_bTextShadowPickerOpen
extern

Whether the text menu shows the colors of the shadow.

Ghidra address:
USA: 0x8028dbe4
Ghidra address:
Asia: 0x8028D734
Ghidra address:
EUR: 0x80290344
Ghidra address:
JPN: 0x8028fdb4

◆ g_bPaintShopExiting

u8 g_bPaintShopExiting
extern

Set once the paint shop fades out.

Ghidra address:
USA: 0x8028dbe8
Ghidra address:
Asia: 0x8028D738
Ghidra address:
EUR: 0x80290348
Ghidra address:
JPN: 0x8028fdb8

◆ g_aabColorEditorBars

u8 g_aabColorEditorBars[3][3]
extern

The colors of the bars of the color editor.

Ghidra address:
USA: 0x8028dcc8
Ghidra address:
Asia: 0x8028D818
Ghidra address:
EUR: 0x80290468
Ghidra address:
JPN: 0x8028fee8

◆ g_apszColorChannelNames

const char* g_apszColorChannelNames[3]
extern

The names of the bars of the color editor.

Ghidra address:
USA: 0x8028dcd4
Ghidra address:
Asia: 0x8028D824
Ghidra address:
EUR: 0x80290474
Ghidra address:
JPN: 0x8028fef4

◆ g_bColorEditorChannel

u8 g_bColorEditorChannel
extern

The bar of the color editor under its cursor.

Ghidra address:
USA: 0x8028dce0
Ghidra address:
Asia: 0x8028D830
Ghidra address:
EUR: 0x80290480
Ghidra address:
JPN: 0x8028ff00

◆ g_apszBrushStyleNames

const char* g_apszBrushStyleNames[2]
extern

The names of the styles of the brush tool.

Ghidra address:
USA: 0x8028dce4
Ghidra address:
Asia: 0x8028D834
Ghidra address:
EUR: 0x80290484

◆ g_apszTextStyleNames

const char* g_apszTextStyleNames[2]
extern

The names of the styles of the text tool.

Ghidra address:
USA: 0x8028dcec
Ghidra address:
Asia: 0x8028D83C
Ghidra address:
EUR: 0x8029048c

◆ g_apszRectStyleNames

const char* g_apszRectStyleNames[4]
extern

The names of the styles of the rectangle tool.

Ghidra address:
USA: 0x8028dcf4
Ghidra address:
Asia: 0x8028D844
Ghidra address:
EUR: 0x80290494

◆ g_apszOvalStyleNames

const char* g_apszOvalStyleNames[4]
extern

The names of the styles of the oval tool.

Ghidra address:
USA: 0x8028dd04
Ghidra address:
Asia: 0x8028D854
Ghidra address:
EUR: 0x802904a4

◆ g_aDecalSwatches

PaletteSwatch g_aDecalSwatches[DECAL_SWATCHES]
extern

The palette of the decal as it is shown.

Ghidra address:
USA: 0x80369b98
Ghidra address:
Asia: 0x80369648
Ghidra address:
EUR: 0x8036c098
Ghidra address:
JPN: 0x8036acf8

◆ g_aPaintToolButtonRects

ScreenRect g_aPaintToolButtonRects[PAINT_TOOLS]
extern

The buttons of the tools.

Ghidra address:
USA: 0x80369cd8
Ghidra address:
Asia: 0x80369788
Ghidra address:
EUR: 0x8036c1d8
Ghidra address:
JPN: 0x8036ae38

◆ g_abSavedSwatchColor

u8 g_abSavedSwatchColor[3]
extern

The color the color editor restores when it is cancelled.

Ghidra address:
USA: 0x80369da8
Ghidra address:
Asia: 0x80369858
Ghidra address:
EUR: 0x8036c2a8
Ghidra address:
JPN: 0x8036af08

◆ g_aDecalSlotRects

ScreenRect g_aDecalSlotRects[DECAL_SLOTS]
extern

The buttons of the decals.

Ghidra address:
USA: 0x80369db0
Ghidra address:
Asia: 0x80369860
Ghidra address:
EUR: 0x8036c2b0
Ghidra address:
JPN: 0x8036af10

◆ g_apDecalTextGlyphs

DecalGlyph* g_apDecalTextGlyphs[DECAL_TEXT_LENGTH]
extern

The glyphs of the text to paint.

Ghidra address:
USA: 0x80369e68
Ghidra address:
Asia: 0x80369918
Ghidra address:
EUR: 0x8036c368
Ghidra address:
JPN: 0x8036afc8