I has this cod on my big project. Different Icon on different sys OS
Code: Select all
/**********************************/
/*** Load library with all data ***/
/**********************************/
/* force the preprocessor to parse */
/* different code depending on */
/* which platform HW is running. */
/***************************************************************/
/*https://www.hollywood-mal.com/docs/html/hollywood/atIF.html*/
/***************************************************************/
/* Open Playbox program on macOS */
/***********************************/
@IF #HW_MACOS
@APPICON {Ic16x16 = "./HD-ICO/ROD-PLAYBOX_16x16.png",
Ic24x24 = "./HD-ICO/ROD-PLAYBOX_24x24.png",
Ic32x32 = "./HD-ICO/ROD-PLAYBOX_32x32.png",
Ic48x48 = "./HD-ICO/ROD-PLAYBOX_48x48.png",
Ic64x64 = "./HD-ICO/ROD-PLAYBOX_64x64.png",
Ic96x96 = "./HD-ICO/ROD-PLAYBOX_96x96.png",
Ic128x128 = "./HD-ICO/ROD-PLAYBOX_128x128.png",
Ic256x256 = "./HD-ICO/ROD-PLAYBOX_256x256.png",
Ic512x512 = "./HD-ICO/ROD-PLAYBOX_512x512.png",
Ic1024x1024 = "./HD-ICO/ROD-PLAYBOX_1024x1024.png"}
@DISPLAY {X=10, Y=0, Color = #WHITE, Title = "MacOS - Rakt Över Hårddisk", Borderless = True, Sizeable = True, DragRegion = {{X=0, Y=0, Width=512, Height=512}}}
@BGPIC 1, "./HD-ICO/ROD-PLAYBOX_512x512.png", {LoadAlpha = True}
@INCLUDE "./Libs/macos_f1_f10_rod_files.hws"
@INCLUDE "./Libs/macos_1_5_rod_files.hws"
/*************************************/
/* Open Playbox program on Windows */
/*************************************/
@ELSEIF #HW_WINDOWS
@APPICON {Ic16x16 = "./HD-ICO/ROD-PLAYBOX_16x16.png",
Ic24x24 = "./HD-ICO/ROD-PLAYBOX_24x24.png",
Ic32x32 = "./HD-ICO/ROD-PLAYBOX_32x32.png",
Ic48x48 = "./HD-ICO/ROD-PLAYBOX_48x48.png",
Ic64x64 = "./HD-ICO/ROD-PLAYBOX_64x64.png",
Ic96x96 = "./HD-ICO/ROD-PLAYBOX_96x96.png",
Ic128x128 = "./HD-ICO/ROD-PLAYBOX_128x128.png",
Ic256x256 = "./HD-ICO/ROD-PLAYBOX_256x256.png",
Ic512x512 = "./HD-ICO/ROD-PLAYBOX_512x512.png",
Ic1024x1024 = "./HD-ICO/ROD-PLAYBOX_1024x1024.png"}
@DISPLAY {X=1570, Y=0, Color = #WHITE, Title = "Windows - Rakt Över Hårddisk", Borderless = False, Sizeable = True, DragRegion = {{X=0, Y=0, Width=256, Height=256}}}
@BGPIC 1, "./HD-BGP/2_playbox_350x610.png", {LoadAlpha = False}
@INCLUDE "./Libs/winos_f1_f10_rod_files.hws"
@INCLUDE "./Libs/winos_1_5_rod_files.hws"
@ELSE
/*************************************/
/* Open Playbox program on LinuxOS */
/*************************************/
@APPICON {Ic16x16 = "./HD-ICO/ROD-PLAYBOX_16x16.png",
Ic24x24 = "./HD-ICO/ROD-PLAYBOX_24x24.png",
Ic32x32 = "./HD-ICO/ROD-PLAYBOX_32x32.png",
Ic48x48 = "./HD-ICO/ROD-PLAYBOX_48x48.png",
Ic64x64 = "./HD-ICO/ROD-PLAYBOX_64x64.png",
Ic96x96 = "./HD-ICO/ROD-PLAYBOX_96x96.png",
Ic128x128 = "./HD-ICO/ROD-PLAYBOX_128x128.png",
Ic256x256 = "./HD-ICO/ROD-PLAYBOX_256x256.png",
Ic512x512 = "./HD-ICO/ROD-PLAYBOX_512x512.png",
Ic1024x1024 = "./HD-ICO/ROD-PLAYBOX_1024x1024.png"}
@DISPLAY {X=1654, Y=-10, Color = #WHITE, Title = "LinuxOS - Rakt Över Hårddisk", Borderless = True, Sizeable = True, DragRegion = {{X=0, Y=0, Width=256, Height=256}}}
@BGPIC 1, "./HD-ICO/ROD-PLAYBOX_256x256.png", {LoadAlpha = True}
/*****************/
/* LinuxOS */
/*****************/
@INCLUDE "./Libs/linuxos_f1_f10_rod_files.hws"
@INCLUDE "./Libs/linuxos_1_5_rod_files.hws"
/*****************/
@ENDIF