- jan.oxymorondeveloper
- Posts : 2309
Reputation : 336
Join date : 2018-03-23
Modding tutorial - Medical Database - Custom icons
Tue Oct 22, 2019 3:38 pm
(list of parameters for configuring custom icons for medical stuff and new departments)
Department
Departments have 7 different icon versions:
Character card - the big icon show for patients and staff and when switching departments
Hiring card - doctors and department selection, version for light background is used in diagnoses table, patient's table
Smaller version for management mode
Skills
Diagnoses and symptoms, examinations and treatments
There are two sizes of the icons, so they can be perfectly sharp in 1080p resolution for the three different sizes shown in patient's card. The smallest one is actually the big icon resized to exactly 50%.
Department
Departments have 7 different icon versions:
Character card - the big icon show for patients and staff and when switching departments
- Code:
<CustomIcon_0_BigAssetRef>ASSET_TEST_DPT_ICON_0</CustomIcon_0_BigAssetRef>
Hiring card - doctors and department selection, version for light background is used in diagnoses table, patient's table
- Code:
<CustomIcon_1_DarkBackgroundAssetRef>ASSET_TEST_DPT_ICON_1</CustomIcon_1_DarkBackgroundAssetRef>
<CustomIcon_2_LightBackgroundAssetRef>ASSET_TEST_DPT_ICON_2</CustomIcon_2_LightBackgroundAssetRef>
<CustomIcon_3_GrayedOutAssetRef>ASSET_TEST_DPT_ICON_3</CustomIcon_3_GrayedOutAssetRef>
Smaller version for management mode
- Code:
<CustomIcon_4_SmallDarkBackgroundAssetRef>ASSET_TEST_DPT_ICON_4</CustomIcon_4_SmallDarkBackgroundAssetRef>
<CustomIcon_5_SmallGrayedOutAssetRef>ASSET_TEST_DPT_ICON_5</CustomIcon_5_SmallGrayedOutAssetRef>
<CustomIcon_6_SmallLightBackgroundAssetRef>ASSET_TEST_DPT_ICON_6</CustomIcon_6_SmallLightBackgroundAssetRef>
Skills
- Code:
<CustomIconAssetRef>ASSET_TEST_SKILL_ICON</CustomIconAssetRef>
<CustomIconLightBackgroundAssetRef>ASSET_TEST_SKILL_ICON_DARK</CustomIconLightBackgroundAssetRef>
Diagnoses and symptoms, examinations and treatments
There are two sizes of the icons, so they can be perfectly sharp in 1080p resolution for the three different sizes shown in patient's card. The smallest one is actually the big icon resized to exactly 50%.
- Code:
<CustomIconBigAssetRef>ASSET_TEST_DPT_ICON_3</CustomIconBigAssetRef>
<CustomIconSmallAssetRef>ASSET_TEST_DPT_ICON_5</CustomIconSmallAssetRef>
- MoominLittlesocksresident
- Posts : 24
Reputation : 6
Join date : 2019-09-25
Age : 31
Location : Cardiff, Wales
Re: Modding tutorial - Medical Database - Custom icons
Fri Nov 01, 2019 5:52 pm
RE: Skills icons - It's become clear that the two lines of code don't cover all uses of the custom skill icon. There are still a few instances where the game is trying to call for another reference and can't find it, thus using the default 'pause' icon. The instances I've found:
Staff Character Card - The pop up dialog box for the custom specialization
Staff Character Card - When changing the specialization
These are two I've noticed and just wondered if there's another line of code to be added? The only work around for this I've found is using the standard <IconIndex> code for these other instances but obviously that limits you to vanilla icons.
Staff Character Card - The pop up dialog box for the custom specialization
Staff Character Card - When changing the specialization
These are two I've noticed and just wondered if there's another line of code to be added? The only work around for this I've found is using the standard <IconIndex> code for these other instances but obviously that limits you to vanilla icons.
- jan.oxymorondeveloper
- Posts : 2309
Reputation : 336
Join date : 2018-03-23
Re: Modding tutorial - Medical Database - Custom icons
Mon Nov 04, 2019 4:13 pm
MoominLittlesocks wrote:RE: Skills icons - It's become clear that the two lines of code don't cover all uses of the custom skill icon. There are still a few instances where the game is trying to call for another reference and can't find it, thus using the default 'pause' icon. The instances I've found:
Staff Character Card - The pop up dialog box for the custom specialization
Staff Character Card - When changing the specialization
These are two I've noticed and just wondered if there's another line of code to be added? The only work around for this I've found is using the standard <IconIndex> code for these other instances but obviously that limits you to vanilla icons.
Hi, thanks for spotting these, I thought we managed to test everything everywhere! Should be a quick fix in either case.
- MoominLittlesocksresident
- Posts : 24
Reputation : 6
Join date : 2019-09-25
Age : 31
Location : Cardiff, Wales
Re: Modding tutorial - Medical Database - Custom icons
Mon Nov 04, 2019 5:12 pm
No problem. Just let me know when you've solved it so I can implement it
- jan.oxymorondeveloper
- Posts : 2309
Reputation : 336
Join date : 2018-03-23
Re: Modding tutorial - Medical Database - Custom icons
Tue Nov 12, 2019 3:30 pm
Hi, this should be now in the game (version 1.1.17383)
- sleepy068fellow
- Posts : 85
Reputation : 24
Join date : 2019-11-28
Age : 31
Location : Australia
Re: Modding tutorial - Medical Database - Custom icons
Fri Dec 06, 2019 10:25 am
Hi, just wondering if support for adding custom index icons will be available in the future? No rush of course but I have noticed that you are limited to the stock icons at the moment which naturally won't match up to the custom symptom or treatment icons (unless there is some special way to add these I am unaware of?). This is most obvious when using the tooltip popup to look at the description of a diagnosis as the icon on the right hand side of the name is the icon index and not the custom icon (same for the department part).
Sorry if this is something you've already discussed elsewhere.
EDIT:
I have noticed this is not the case in the diagnosis table (opened from the patient card), it shows my custom icons. Hope that helps. I have noticed this is only relevant to 'possible diagnosis ' tool tips and 'avaliable treatment' tooltips, symptom tooltips do appear to be working and showing the correct custom icon in the tooltip.
Sorry if this is something you've already discussed elsewhere.
EDIT:
I have noticed this is not the case in the diagnosis table (opened from the patient card), it shows my custom icons. Hope that helps. I have noticed this is only relevant to 'possible diagnosis ' tool tips and 'avaliable treatment' tooltips, symptom tooltips do appear to be working and showing the correct custom icon in the tooltip.
- jan.oxymorondeveloper
- Posts : 2309
Reputation : 336
Join date : 2018-03-23
Re: Modding tutorial - Medical Database - Custom icons
Fri Dec 06, 2019 2:58 pm
Hi, thanks for spotting this, there are tens of different places in code that fill the icons in the UI and that needed to be updated for the custom icons, so it's possible we missed a few. Hopefully an easy fix that could make its way to the next patch.
- sleepy068fellow
- Posts : 85
Reputation : 24
Join date : 2019-11-28
Age : 31
Location : Australia
Re: Modding tutorial - Medical Database - Custom icons
Tue Jan 21, 2020 12:46 pm
Hi Jan,
Sorry to bother you again but I have also noticed a similar issue as touched on above, this time with the diagnoses. I am not 100% sure but it doesn't actually look like the diagnosis are using the small icon asset at times? I've noticed, in the possible diagnosis panel that all my assets look double the size of the stock ones. I have also noticed that when I click on a stock diagnosis, it becomes larger in the 'final diagnosis' tab of the patient card but this does not happen for ones I've added. The size of my asset doesn't seem to change at all and that sort of tells me the game might only be using one of these assets somehow.
Not sure if this is maybe something I've mucked up? I do use the same asset for diagnoses as their main symptom and the main symptom seems to work fine so I've definitely got the two sizes (roughly 51px by 51px for large and 25px by 25px for the small).
None the less, thank you, you guys are doing an amazing job and I know you are under the pump so there is no rush on this.
I've provided a screenshot below (Includes example of previous post issue)(Note main symptom is the uses the same icons as diagnosis in red box)
Sorry to bother you again but I have also noticed a similar issue as touched on above, this time with the diagnoses. I am not 100% sure but it doesn't actually look like the diagnosis are using the small icon asset at times? I've noticed, in the possible diagnosis panel that all my assets look double the size of the stock ones. I have also noticed that when I click on a stock diagnosis, it becomes larger in the 'final diagnosis' tab of the patient card but this does not happen for ones I've added. The size of my asset doesn't seem to change at all and that sort of tells me the game might only be using one of these assets somehow.
Not sure if this is maybe something I've mucked up? I do use the same asset for diagnoses as their main symptom and the main symptom seems to work fine so I've definitely got the two sizes (roughly 51px by 51px for large and 25px by 25px for the small).
None the less, thank you, you guys are doing an amazing job and I know you are under the pump so there is no rush on this.
I've provided a screenshot below (Includes example of previous post issue)(Note main symptom is the uses the same icons as diagnosis in red box)
- PartScreenShot:
https://i.imgur.com/wQBKxuG.png
- ChaosToasterHHresident
- Posts : 10
Reputation : 0
Join date : 2020-03-07
Age : 32
Location : Germany
Re: Modding tutorial - Medical Database - Custom icons
Sat Mar 14, 2020 1:15 am
It would also be interesting if there was a list where all the icons would be in it because then you would know that you should also write down at iconindex always guess ^^
- jan.oxymorondeveloper
- Posts : 2309
Reputation : 336
Join date : 2018-03-23
Re: Modding tutorial - Medical Database - Custom icons
Mon Mar 16, 2020 10:53 am
Hi, if you download the "helpful files" zip from https://projecthospital.forumotion.com/t1477-modding-tutorial-objects , there's a psd with the icons and a layer with all the icon index numbers - that's what we use ourselves.
- ChaosToasterHHresident
- Posts : 10
Reputation : 0
Join date : 2020-03-07
Age : 32
Location : Germany
Re: Modding tutorial - Medical Database - Custom icons
Fri Mar 27, 2020 7:28 pm
OMG, i love you so much Jan <3
Thank you so very much, that help alot and i can finish my Mod
Greets
Tim
Thank you so very much, that help alot and i can finish my Mod
Greets
Tim
Permissions in this forum:
You cannot reply to topics in this forum