Xonotic
buffs.qc File Reference
#include "buffs.qh"
+ Include dependency graph for buffs.qc:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

string BUFF_NAME (int i)
 

Function Documentation

◆ BUFF_NAME()

string BUFF_NAME ( int  i)

Definition at line 3 of file buffs.qc.

References Buff::m_color, Buff::m_name, REGISTRY_GET, REPLICATE(), rgb_to_hexcolor(), and strcat().

4 {
5  Buff b = REGISTRY_GET(StatusEffect, i);
6  return strcat(rgb_to_hexcolor(b.m_color), b.m_name);
7 }
#define REGISTRY_GET(id, i)
Definition: registry.qh:43
string m_name
Definition: buffs.qh:27
Definition: buffs.qh:20
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
ERASEABLE string rgb_to_hexcolor(vector rgb)
Definition: color.qh:183
vector m_color
Definition: buffs.qh:26
+ Here is the call graph for this function: