Přeskočit obsah

Focusnames

This package colors the focus names of the NPCs in appropriate colors according to the behavior defined below (alpha values are taken into account). Also affects monsters. (Mobs/Items get Color_Neutral)

Dependencies

Initialization

Initialize with LeGo_Focusnames flag.

LeGo_Init(LeGo_Focusnames);

Implementation

Focusnames.d on GitHub

Usage

If you want to change colors for any behavior edit the following functions directly in Focusnames.d file.

Focusnames_Color_Friendly

1
2
3
4
func int Focusnames_Color_Friendly()
{
    return RGBA(0, 255, 0, 255); // Green
};

Focusnames_Color_Neutral

1
2
3
4
func int Focusnames_Color_Neutral()
{
    return RGBA(255, 255, 255, 255); // White
};

Focusnames_Color_Angry

1
2
3
4
func int Focusnames_Color_Angry()
{
    return RGBA(255, 180, 0, 255); // Orange
};

Focusnames_Color_Hostile

1
2
3
4
func int Focusnames_Color_Hostile()
{
    return RGBA(255, 0, 0, 255); // Red
};