The problem you are probably going to get is that unless "player" is defined in WED, your going to get
compile errors from the panel on the "player.???" lines.
Because if player is undefined ay compile time, the panel cant find "player.name" because "player==NULL".
UNLESS you cheat. It can get messy but if you are careful you can get away with it.
At the top of your code somewhere define "player" like this
ENTITY* player = { x=x; }
instead of
ENTITY* player;
This creates a dummy global entity for your panel to compile with.
The rest of your coding can stay the same.