Skip to content

Coloured info/objective/warning messages#4624

Open
Spatulade wants to merge 28 commits intodkfans:masterfrom
Spatulade:coloured-info-objectives-warnings
Open

Coloured info/objective/warning messages#4624
Spatulade wants to merge 28 commits intodkfans:masterfrom
Spatulade:coloured-info-objectives-warnings

Conversation

@Spatulade
Copy link
Copy Markdown
Contributor

Plan is to add different colours for INFORMATION/OBJECTIVE commands (and add in WARNING command, basically same as INFORMATION but using a ! instead of an i), and add an additional optional argument specifying colour in {BLUE,GREEN,RED,YELLOW,PURPLE,WHITE,GREY,ORANGE,BROWN}. I also thought about adding another argument to OBJECTIVE to allow for different discrete objectives tracked separately (I currently split the event out by colour but I'd prefer to have Objective2-8 and the colour to be decided using the colour argument, so you can have multiple with the same colour and allow the same objective to change colour etc)

Graphics in dkfans/FXGraphics#113

Spatulade and others added 13 commits March 18, 2026 01:21
set up objectives to be unique per colour for now, not sure a better way to do it.
Need to set up OBJECTIVE/INFORMATION (and make WARNING which should just be similar to INFORMATION), extra argument should specify colour and link to sprite and, for objective, EvKind_Objective[Colour].
It feels gross doing it this way, hopefully we don't actually have to do this and there's a more compact way.
Set up types and colours better (hopefully). Aim is to add "icon" to Event struct and update this, then use this later on when setting message sprite.
oh god do i have to add the extra argument to everything
if commands only accept three inputs, we split location and coords commands to free up the slot for the colour. I don't think I understand how the commands work enough to know if this is even right though
…s, added BONUS_INFORMATION script commands with setup

I've set up the four commands for bonus information (coloured info icons), their corresponding commands (I had to split location and coords so that param3 could be colour), and set events for them.

DISPLAY_BONUS_INFORMATION		set_general_bonus_information_at_location	EvKind_BonusInformation
DISPLAY_BONUS_INFORMATION_WITH_POS	set_general_bonus_information_at_coords	EvKind_BonusInformation
QUICK_BONUS_INFORMATION		set_quick_bonus_information_at_location	EvKind_QuickBonusInformation
QUICK_BONUS_INFORMATION_WITH_POS	set_quick_bonus_information_at_coords	EvKind_QuickBonusInformation

I don't think the commands have actually grabbed the icon properly so I need help figuring out how to make them point to the right place correctly. I also think this means that when a new bonus information tab is made with a different colour, it will update all existing ones as well which is not ideal. But I don't know for sure. I did wonder if there was a way to directly overwrite the bttn_sprite in event_button_info, but I don't know if that's a worse idea. I think this is getting there at least!
@Spatulade Spatulade requested a review from Loobinex March 31, 2026 09:28
@Spatulade Spatulade marked this pull request as draft March 31, 2026 09:53
@Spatulade Spatulade marked this pull request as ready for review March 31, 2026 09:54
@Spatulade Spatulade marked this pull request as draft March 31, 2026 10:04
@Spatulade Spatulade marked this pull request as ready for review March 31, 2026 10:04
@Spatulade Spatulade marked this pull request as draft March 31, 2026 12:43
@Spatulade Spatulade marked this pull request as ready for review March 31, 2026 12:43
@Spatulade Spatulade marked this pull request as draft March 31, 2026 13:01
@Spatulade Spatulade assigned Spatulade and unassigned Spatulade Mar 31, 2026
@Spatulade Spatulade marked this pull request as ready for review March 31, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants