mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-18 19:47:15 +01:00
Documented the Textdraw type.
This commit is contained in:
parent
72677546a7
commit
c2e62af14c
@ -8,96 +8,99 @@
|
|||||||
namespace SqMod {
|
namespace SqMod {
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------------------------------
|
/* ------------------------------------------------------------------------------------------------
|
||||||
* ...
|
* Class responsible for managing the referenced textdraw instance.
|
||||||
*/
|
*/
|
||||||
class CTextdraw : public Reference< CTextdraw >
|
class CTextdraw : public Reference< CTextdraw >
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// --------------------------------------------------------------------------------------------
|
|
||||||
|
/* --------------------------------------------------------------------------------------------
|
||||||
|
* Import the constructors, destructors and assignment operators from the base class.
|
||||||
|
*/
|
||||||
using RefType::Reference;
|
using RefType::Reference;
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
*
|
* Show the referenced textdraw instance to all players on the server.
|
||||||
*/
|
*/
|
||||||
void ShowAll() const noexcept;
|
void ShowAll() const noexcept;
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
*
|
* Show the referenced textdraw instance to the specified player instance.
|
||||||
*/
|
*/
|
||||||
void ShowFor(const Reference< CPlayer > & player) const noexcept;
|
void ShowFor(const Reference< CPlayer > & player) const noexcept;
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
*
|
* Show the referenced textdraw instance to all players in the specified range.
|
||||||
*/
|
*/
|
||||||
void ShowRange(SQInt32 first, SQInt32 last) const noexcept;
|
void ShowRange(SQInt32 first, SQInt32 last) const noexcept;
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
*
|
* Hide the referenced textdraw instance from all players on the server.
|
||||||
*/
|
*/
|
||||||
void HideAll() const noexcept;
|
void HideAll() const noexcept;
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
*
|
* Hide the referenced textdraw instance from the specified player instance.
|
||||||
*/
|
*/
|
||||||
void HideFor(const Reference< CPlayer > & player) const noexcept;
|
void HideFor(const Reference< CPlayer > & player) const noexcept;
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
*
|
* Hide the referenced textdraw instance from all players in the specified range.
|
||||||
*/
|
*/
|
||||||
void HideRange(SQInt32 first, SQInt32 last) const noexcept;
|
void HideRange(SQInt32 first, SQInt32 last) const noexcept;
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
*
|
* Set the position of the referenced textdraw instance for all players on the server.
|
||||||
*/
|
*/
|
||||||
void SetPositionAll(const Vector2i & pos) const noexcept;
|
void SetPositionAll(const Vector2i & pos) const noexcept;
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
*
|
* Set the position of the referenced textdraw instance for all players on the server.
|
||||||
*/
|
*/
|
||||||
void SetPositionAllEx(SQInt32 x, SQInt32 y) const noexcept;
|
void SetPositionAllEx(SQInt32 x, SQInt32 y) const noexcept;
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
*
|
* Set the position of the referenced textdraw instance for the specified player instance.
|
||||||
*/
|
*/
|
||||||
void SetPositionFor(const Reference< CPlayer > & player, const Vector2i & pos) const noexcept;
|
void SetPositionFor(const Reference< CPlayer > & player, const Vector2i & pos) const noexcept;
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
*
|
* Set the position of the referenced textdraw instance for the specified player instance.
|
||||||
*/
|
*/
|
||||||
void SetPositionForEx(const Reference< CPlayer > & player, SQInt32 x, SQInt32 y) const noexcept;
|
void SetPositionForEx(const Reference< CPlayer > & player, SQInt32 x, SQInt32 y) const noexcept;
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
*
|
* Set the position of the referenced textdraw instance for all players in the specified range.
|
||||||
*/
|
*/
|
||||||
void SetPositionRange(SQInt32 first, SQInt32 last, const Vector2i & pos) const noexcept;
|
void SetPositionRange(SQInt32 first, SQInt32 last, const Vector2i & pos) const noexcept;
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
*
|
* Set the center of the referenced textdraw instance for all players on the server.
|
||||||
*/
|
*/
|
||||||
void SetColorAll(const Color4 & col) const noexcept;
|
void SetColorAll(const Color4 & col) const noexcept;
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
*
|
* Set the color of the referenced textdraw instance for all players on the server.
|
||||||
*/
|
*/
|
||||||
void SetColorAllEx(Uint8 r, Uint8 g, Uint8 b, Uint8 a) const noexcept;
|
void SetColorAllEx(Uint8 r, Uint8 g, Uint8 b, Uint8 a) const noexcept;
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
*
|
* Set the color of the referenced textdraw instance for the specified player instance.
|
||||||
*/
|
*/
|
||||||
void SetColorFor(const Reference< CPlayer > & player, const Color4 & col) const noexcept;
|
void SetColorFor(const Reference< CPlayer > & player, const Color4 & col) const noexcept;
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
*
|
* Set the color of the referenced textdraw instance for the specified player instance.
|
||||||
*/
|
*/
|
||||||
void SetColorForEx(const Reference< CPlayer > & player, Uint8 r, Uint8 g, Uint8 b, Uint8 a) const noexcept;
|
void SetColorForEx(const Reference< CPlayer > & player, Uint8 r, Uint8 g, Uint8 b, Uint8 a) const noexcept;
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
*
|
* Set the color of the referenced textdraw instance for all players in the specified range.
|
||||||
*/
|
*/
|
||||||
void SetColorRange(SQInt32 first, SQInt32 last, const Color4 & col) const noexcept;
|
void SetColorRange(SQInt32 first, SQInt32 last, const Color4 & col) const noexcept;
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
*
|
* Retrieve the text string used by the referenced textdraw instance.
|
||||||
*/
|
*/
|
||||||
const SQChar * GetText() const noexcept;
|
const SQChar * GetText() const noexcept;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user