Page 1 of 1

I fixed the [TRIGGER] tag

Posted: Sun Mar 27, 2011 4:02 pm
by 3ICE
It no longer uses two CSS white-space properties, only one.
It finally wraps long lines, preventing overflow.

Example usage of the [TRIGGER] tag:
Melee Initialization Melee Initialization
t_emp t_eve Events t_emp t_emp t_all Map Initialization t_emp t_co Conditions t_emp t_act Actions t_emp t_emp t_mel Melee Game - Use melee time of day (for all players) t_emp t_emp t_mel Melee Game - Limit Heroes to 1 per Hero-type (for all players) t_emp t_emp t_mel Melee Game - Give trained Heroes a Scroll of Town Portal (for all players) t_emp t_emp t_mel Melee Game - Set starting resources (for all players) t_emp t_emp t_mel Melee Game - Remove creeps and critters from used start locations (for all players) t_emp t_emp t_mel Melee Game - Create starting units (for all players) t_emp t_emp t_mel Melee Game - Run melee AI scripts (for computer players) t_emp t_emp t_mel Melee Game - Enforce victory/defeat conditions (for all players)

Code: Select all

[trigger=Melee Initialization] t_emp t_eve Events
t_emp t_emp t_all Map Initialization
t_emp t_co Conditions
t_emp t_act Actions
t_emp t_emp t_mel Melee Game - Use melee time of day (for all players)
t_emp t_emp t_mel Melee Game - Limit Heroes to 1 per Hero-type (for all players)
t_emp t_emp t_mel Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
t_emp t_emp t_mel Melee Game - Set starting resources (for all players)
t_emp t_emp t_mel Melee Game - Remove creeps and critters from used start locations (for all players)
t_emp t_emp t_mel Melee Game - Create starting units (for all players)
t_emp t_emp t_mel Melee Game - Run melee AI scripts (for computer players)
t_emp t_emp t_mel Melee Game - Enforce victory/defeat conditions (for all players)[/trigger]
t_emp (a blank 16×16 smiley: t_emp ) can be replaced with      (a bbcode for four   - non-breaking spaces:     ) or with normal spaces.

Here is a reference rendering by my trigger parser: http://trigger.3ice.hu/?i=1 (iframed below)


There is a known bug: The first smiley after the [TRIGGER] tag breaks after you edit your post, because the space is removed:

Code: Select all

[trigger=Works] t_emp Works[/trigger]
[trigger=Broken]t_emp Broken[/trigger]
The workaround is simple: You just have to add the space back in every time you edit your post.

Re: I fixed the [TRIGGER] tag

Posted: Mon Aug 27, 2012 6:41 pm
by 3ICE
Fixed just now: line-height: 1em; to remove the ugly spacing between lines.

Before:
t_jm Line 1
t_j Line 2
After:
t_jm Line 1
t_j Line 2