mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 06:13:45 -07:00
Shops cursor color with included pulse
This commit is contained in:
parent
0327426ad6
commit
5e2b0d6849
1 changed files with 13 additions and 3 deletions
|
@ -1887,9 +1887,19 @@ void EnOssan_UpdateCursorAnim(EnOssan* this) {
|
||||||
this->cursorAnimState = 0;
|
this->cursorAnimState = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (CVar_GetS32("gN64Colors", 0) != 0) {
|
||||||
|
this->cursorColorR = ColChanMix(0, 0.0f, t);
|
||||||
|
this->cursorColorG = ColChanMix(80, 80.0f, t);
|
||||||
|
this->cursorColorB = ColChanMix(255, 0.0f, t);
|
||||||
|
} else if (CVar_GetS32("gGameCubeColors", 0) != 0) {
|
||||||
this->cursorColorR = ColChanMix(0, 0.0f, t);
|
this->cursorColorR = ColChanMix(0, 0.0f, t);
|
||||||
this->cursorColorG = ColChanMix(255, 80.0f, t);
|
this->cursorColorG = ColChanMix(255, 80.0f, t);
|
||||||
this->cursorColorB = ColChanMix(80, 0.0f, t);
|
this->cursorColorB = ColChanMix(80, 0.0f, t);
|
||||||
|
} else if (CVar_GetS32("gCustomColors", 0) != 0) {
|
||||||
|
this->cursorColorR = ColChanMix(CVar_GetInt("gCCABtnPrimR", 90), ((CVar_GetInt("gCCABtnPrimR", 90)/255)*100), t);
|
||||||
|
this->cursorColorG = ColChanMix(CVar_GetInt("gCCABtnPrimG", 90), ((CVar_GetInt("gCCABtnPrimG", 90)/255)*100), t);
|
||||||
|
this->cursorColorB = ColChanMix(CVar_GetInt("gCCABtnPrimB", 90), ((CVar_GetInt("gCCABtnPrimB", 90)/255)*100), t);
|
||||||
|
}
|
||||||
this->cursorColorA = ColChanMix(255, 0.0f, t);
|
this->cursorColorA = ColChanMix(255, 0.0f, t);
|
||||||
this->cursorAnimTween = t;
|
this->cursorAnimTween = t;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue