|
#7
|
||||
|
||||
|
@Carldric Clement, in CIU the "MusicIcon" button when positioned over the "MusicButton" button (RectInRect) is set to disabled, so the actions of the "MusicButton" button change the state of "MusicIcon", but it behaves only visually (no Click or OnMouse actions ).
The same goes for MusicIconAR (together with MusicARButton) and also for MusicIconSI (together with SmallMusicButton). - "MusicIconAR", "MusicIcon" and "MusicIconSI" is a normal Botva2 pot with 4 images (idle, selected, clicked, disabled) arranged vertically in an image (in the CIU theme example, only the disabled icon was created because it does not use the other images). - "MusicButtonAR", "MusicButton" and "SmallMusicButton" is a CstmButtom by Yener90 with 4 images separately. P.S: You can see the code at the end of the ButtonsTextures procedure in the CIU script. Code:
BtnGetPosition(hMusicAR, Rt.Left, Rt.Top, Rt.Bottom, Rt.Right);
Rt.Bottom := Rt.Top + Rt.Bottom;
Rt.Right:= Rt.Left + Rt.Right;
if BtnY(MusicARBtn, CstmBtnInt) then
BtnSetEnabled(hMusicAR, not RectInRect(Rt, BoundsToRect(CstmBtn[CstmBtnInt].AreaX, CstmBtn[CstmBtnInt].AreaY, CstmBtn[CstmBtnInt].AreaW, CstmBtn[CstmBtnInt].AreaH)));
BtnGetPosition(hMusic, Rt.Left, Rt.Top, Rt.Bottom, Rt.Right);
Rt.Bottom := Rt.Top + Rt.Bottom;
Rt.Right:= Rt.Left + Rt.Right;
if BtnY(MusicBtn, CstmBtnInt) then
BtnSetEnabled(hMusic, not RectInRect(Rt, BoundsToRect(CstmBtn[CstmBtnInt].AreaX, CstmBtn[CstmBtnInt].AreaY, CstmBtn[CstmBtnInt].AreaW, CstmBtn[CstmBtnInt].AreaH)));
BtnGetPosition(hMusicSI, Rt.Left, Rt.Top, Rt.Bottom, Rt.Right);
Rt.Bottom := Rt.Top + Rt.Bottom;
Rt.Right:= Rt.Left + Rt.Right;
if BtnY(MusicSmallBtn, CstmBtnInt) then
BtnSetEnabled(hMusicSI, not RectInRect(Rt, BoundsToRect(CstmBtn[CstmBtnInt].AreaX, CstmBtn[CstmBtnInt].AreaY, CstmBtn[CstmBtnInt].AreaW, CstmBtn[CstmBtnInt].AreaH)));
BtnGetPosition(hPauseSI, Rt.Left, Rt.Top, Rt.Bottom, Rt.Right);
Rt.Bottom := Rt.Top + Rt.Bottom;
Rt.Right:= Rt.Left + Rt.Right;
if BtnY(PauseSmallBtn, CstmBtnInt) then
BtnSetEnabled(hPauseSI, not RectInRect(Rt, BoundsToRect(CstmBtn[CstmBtnInt].AreaX, CstmBtn[CstmBtnInt].AreaY, CstmBtn[CstmBtnInt].AreaW, CstmBtn[CstmBtnInt].AreaH)));
end;
Last edited by Cesar82; 27-05-2022 at 13:22. |
| The Following User Says Thank You to Cesar82 For This Useful Post: | ||
Carldric Clement (28-05-2022) | ||
| Tags |
| ciu designer, ciu v3 |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Game Installer Designer by altef_4 | altef_4 | Conversion Tutorials | 236 | 28-05-2021 02:54 |
| Repetitive vs Stretching Progress Bar | Cuttlas | Conversion Tutorials | 0 | 10-11-2020 07:14 |
| Unpack files with progress in batch | gozarck | Conversion Tutorials | 3 | 29-06-2016 12:38 |
| Progress bar for Tasks | danswano | PC Games - CD/DVD Conversions | 22 | 09-03-2013 12:09 |