mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Cosmetic: rename coin to corner (2)
This commit is contained in:
parent
0a17d2d92e
commit
93c386a4ce
@ -71,7 +71,7 @@ protected:
|
||||
bool m_bEnable; // true si bouton actif
|
||||
bool m_bHide; // true si bouton caché
|
||||
Uint32 m_message; // message envoyé si bouton actionné
|
||||
Point m_pos; // coin sup/gauche
|
||||
Point m_pos; // up/left corner
|
||||
Point m_dim; // dimensions
|
||||
Sint32 m_state; // 0=relâché, 1=pressé, +2=survollé
|
||||
Sint32 m_mouseState; // 0=relâché, 1=pressé, +2=survollé
|
||||
|
@ -2985,8 +2985,8 @@ CDecor::GetResHili (Point posMouse)
|
||||
{
|
||||
Sint32 icon;
|
||||
|
||||
// Les valeurs `corner == true` correspondent aux objets placés
|
||||
// au coin inf/droit de la cellule.
|
||||
// The `corner == true` values are corresponding to the objects
|
||||
// positionned at the bottom/right corner of the cell.
|
||||
struct object_t {
|
||||
bool corner;
|
||||
const char * text;
|
||||
@ -3261,24 +3261,24 @@ CDecor::HideTooltips (bool bHide)
|
||||
// Modifie l'origine supérieure/gauche du décor.
|
||||
|
||||
void
|
||||
CDecor::SetCorner (Point coin, bool bCenter)
|
||||
CDecor::SetCorner (Point corner, bool bCenter)
|
||||
{
|
||||
if (bCenter)
|
||||
{
|
||||
coin.x -= 10;
|
||||
coin.y -= 2;
|
||||
corner.x -= 10;
|
||||
corner.y -= 2;
|
||||
}
|
||||
|
||||
if (coin.x < -8)
|
||||
coin.x = -8;
|
||||
if (coin.x > MAXCELX - 12)
|
||||
coin.x = MAXCELX - 12;
|
||||
if (coin.y < -2)
|
||||
coin.y = -2;
|
||||
if (coin.y > MAXCELY - 4)
|
||||
coin.y = MAXCELY - 4;
|
||||
if (corner.x < -8)
|
||||
corner.x = -8;
|
||||
if (corner.x > MAXCELX - 12)
|
||||
corner.x = MAXCELX - 12;
|
||||
if (corner.y < -2)
|
||||
corner.y = -2;
|
||||
if (corner.y > MAXCELY - 4)
|
||||
corner.y = MAXCELY - 4;
|
||||
|
||||
m_celCorner = coin;
|
||||
m_celCorner = corner;
|
||||
m_bGroundRedraw = true; // faudra redessiner les sols
|
||||
m_celHili.x = -1;
|
||||
m_textLastPos.x = -1; // tooltips plus lavable !
|
||||
|
@ -406,7 +406,7 @@ public:
|
||||
bool GetObject (Point cel, Sint32 & channel, Sint32 & icon);
|
||||
bool SetFire (Point cel, bool bFire);
|
||||
|
||||
void SetCorner (Point coin, bool bCenter = false);
|
||||
void SetCorner (Point corner, bool bCenter = false);
|
||||
Point GetCorner ();
|
||||
Point GetHome ();
|
||||
void MemoPos (Sint32 rank, bool bRecord);
|
||||
|
@ -60,7 +60,7 @@ protected:
|
||||
CDecor * m_pDecor;
|
||||
CSound * m_pSound;
|
||||
CEvent * m_pEvent;
|
||||
Point m_pos; // coin sup/gauche
|
||||
Point m_pos; // up/left corner
|
||||
Point m_dim; // dimensions
|
||||
Sint32 m_nbButtons;
|
||||
Point m_nbCel;
|
||||
|
@ -46,7 +46,7 @@ protected:
|
||||
CDecor * m_pDecor;
|
||||
CSound * m_pSound;
|
||||
bool m_bHide; // true si bouton caché
|
||||
Point m_pos; // coin sup/gauche
|
||||
Point m_pos; // up/left corner
|
||||
Point m_dim; // dimensions
|
||||
Sint32 m_type;
|
||||
Sint32 m_level;
|
||||
|
Loading…
x
Reference in New Issue
Block a user