mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-18 12:16:40 -04:00
libs compiles
This commit is contained in:
parent
1b0f7fe0c2
commit
a7278bac40
121 changed files with 1528 additions and 1731 deletions
|
@ -109,7 +109,7 @@ void string_list_sup_call()
|
|||
v=string_list(*(char **)(o_aktual->userptr),v);
|
||||
if (v+1) c_set_value(0,id,v);
|
||||
o_aktual=p;
|
||||
p->events[3]();
|
||||
p->on_change();
|
||||
o_aktual=o_start;
|
||||
}
|
||||
|
||||
|
@ -156,9 +156,9 @@ void str_line_event(EVENT_MSG *msg,OBJREC *o)
|
|||
|
||||
void str_line(OBJREC *o)
|
||||
{
|
||||
o->runs[0]=str_line_init;
|
||||
o->runs[1]=str_line_draw;
|
||||
o->runs[2]=str_line_event;
|
||||
o->call_init=str_line_init;
|
||||
o->call_draw=str_line_draw;
|
||||
o->call_event=str_line_event;
|
||||
o->datasize=4;
|
||||
}
|
||||
|
||||
|
@ -293,7 +293,7 @@ void value_store_init(OBJREC *o,int *bytes)
|
|||
|
||||
void value_store(OBJREC *o)
|
||||
{
|
||||
o->runs[0]=value_store_init;
|
||||
o->call_init=value_store_init;
|
||||
}
|
||||
|
||||
void action_flags()
|
||||
|
@ -623,7 +623,7 @@ void chozeni2(EVENT_MSG *msg,OBJREC *o)
|
|||
if (msg->msg==E_DONE) return ;
|
||||
if (msg->msg==E_KEYBOARD)
|
||||
{
|
||||
if (o_aktual==NULL || o_aktual->events[3]!=chozeni2) return;
|
||||
if (o_aktual==NULL || o_aktual->on_change!=chozeni2) return;
|
||||
if (waktual->id==map_win || waktual->id==tool_bar)
|
||||
select_window(sektor_win);
|
||||
if (waktual->id!=sektor_win) return;
|
||||
|
@ -907,10 +907,10 @@ void open_sector_win(void)
|
|||
c_default(0); on_control_enter(string_list_sup);on_control_change(set_change_map);
|
||||
define(80,5,125,95,12,0,str_line,side_names);property(&b2,NULL,&f_sel,WINCOLOR);
|
||||
c_default(0); on_control_enter(string_list_sup);on_control_change(set_change_map);
|
||||
define(140,103,35,12,12,0,check_box,"");o_end->runs[2]=o_end->events[3];
|
||||
define(150,103,65,12,12,0,check_box,"");o_end->runs[2]=o_end->events[3];
|
||||
define(160,103,95,12,12,0,check_box,"");o_end->runs[2]=o_end->events[3];
|
||||
define(170,103,125,12,12,0,check_box,"");o_end->runs[2]=o_end->events[3];
|
||||
define(140,103,35,12,12,0,check_box,"");o_end->call_event=o_end->on_change;
|
||||
define(150,103,65,12,12,0,check_box,"");o_end->call_event=o_end->on_change;
|
||||
define(160,103,95,12,12,0,check_box,"");o_end->call_event=o_end->on_change;
|
||||
define(170,103,125,12,12,0,check_box,"");o_end->call_event=o_end->on_change;
|
||||
define(200,5,155,110,12,0,str_line,ceils);property(&b2,NULL,&f_sel,WINCOLOR);
|
||||
c_default(0); on_control_enter(string_list_sup);on_control_change(set_change_map);
|
||||
define(210,5,185,110,12,0,str_line,floors);property(&b2,NULL,&f_sel,WINCOLOR);
|
||||
|
|
12
MAPS/ITEMS.C
12
MAPS/ITEMS.C
|
@ -448,8 +448,8 @@ TITEM *items_on_map()
|
|||
if (waktual->id==tool_bar) close_current();
|
||||
select_window(map_win);
|
||||
o=find_object(waktual,10);
|
||||
o->runs[1]=workspace_items;
|
||||
o->runs[2]=workspace_select_item;
|
||||
o->call_draw=workspace_items;
|
||||
o->call_event=workspace_select_item;
|
||||
set_window_modal();
|
||||
selected_item=NULL;
|
||||
while (selected_item==NULL && waktual->id==map_win) do_events();
|
||||
|
@ -468,8 +468,8 @@ void item_umisti_v_mape(TITEM *it)
|
|||
if (waktual->id==tool_bar) close_current();
|
||||
select_window(map_win);
|
||||
o=find_object(waktual,10);
|
||||
o->runs[1]=workspace_items;
|
||||
o->runs[2]=workspace_select_item;
|
||||
o->call_draw=workspace_items;
|
||||
o->call_event=workspace_select_item;
|
||||
set_window_modal();
|
||||
lastpos_sec=-1;
|
||||
while (waktual->id==map_win)
|
||||
|
@ -535,8 +535,8 @@ void ikona_click(EVENT_MSG *msg,OBJREC *o)
|
|||
|
||||
void ikona(OBJREC *o)
|
||||
{
|
||||
o->runs[1]=ikona_display;
|
||||
o->runs[2]=ikona_click;
|
||||
o->call_draw=ikona_display;
|
||||
o->call_event=ikona_click;
|
||||
o->datasize=4;
|
||||
}
|
||||
|
||||
|
|
|
@ -175,8 +175,8 @@ void ikona_click(EVENT_MSG *msg,OBJREC *o)
|
|||
|
||||
void ikona(OBJREC *o)
|
||||
{
|
||||
o->runs[1]=ikona_display;
|
||||
o->runs[2]=ikona_click;
|
||||
o->call_draw=ikona_display;
|
||||
o->call_event=ikona_click;
|
||||
o->datasize=4;
|
||||
}
|
||||
|
||||
|
|
|
@ -441,10 +441,10 @@ void dtext_draw(int x1,int y1,int x2, int y2,OBJREC *o)
|
|||
|
||||
void dtext(OBJREC *o)
|
||||
{
|
||||
o->runs[0]=dtext_init;
|
||||
o->runs[1]=dtext_draw;
|
||||
//o->runs[2]=sample_event;
|
||||
//o->runs[3]=sample_done;
|
||||
o->call_init=dtext_init;
|
||||
o->call_draw=dtext_draw;
|
||||
//o->call_event=sample_event;
|
||||
//o->call_done=sample_done;
|
||||
}
|
||||
|
||||
void about()
|
||||
|
@ -485,7 +485,7 @@ void fog_bar_draw(int x1,int y1,int x2,int y2,OBJREC *o)
|
|||
|
||||
void fog_bar(OBJREC *o)
|
||||
{
|
||||
o->runs[1]=fog_bar_draw;
|
||||
o->call_draw=fog_bar_draw;
|
||||
}
|
||||
|
||||
void close_app(void)
|
||||
|
|
|
@ -817,9 +817,9 @@ void workspace_event(EVENT_MSG *msg,OBJREC *o)
|
|||
}
|
||||
void workspace(OBJREC *o)
|
||||
{
|
||||
//o->runs[0]=workspace_init;
|
||||
o->runs[1]=workspace_draw;
|
||||
o->runs[2]=workspace_event;
|
||||
//o->call_init=workspace_init;
|
||||
o->call_draw=workspace_draw;
|
||||
o->call_event=workspace_event;
|
||||
o->datasize=4;
|
||||
}
|
||||
|
||||
|
|
|
@ -106,9 +106,9 @@ void pcx_view_done(OBJREC *o)
|
|||
|
||||
void pcx_view(OBJREC *o)
|
||||
{
|
||||
o->runs[0]=pcx_view_init;
|
||||
o->runs[1]=pcx_view_draw;
|
||||
o->runs[3]=pcx_view_done;
|
||||
o->call_init=pcx_view_init;
|
||||
o->call_draw=pcx_view_draw;
|
||||
o->call_done=pcx_view_done;
|
||||
o->datasize=129;
|
||||
}
|
||||
|
||||
|
@ -146,8 +146,8 @@ void symetry_event(EVENT_MSG *msg,OBJREC *o)
|
|||
|
||||
void symetry(OBJREC *o)
|
||||
{
|
||||
o->runs[1]=symetry_draw;
|
||||
o->runs[2]=symetry_event;
|
||||
o->call_draw=symetry_draw;
|
||||
o->call_event=symetry_event;
|
||||
o->datasize=4;
|
||||
}
|
||||
|
||||
|
|
|
@ -140,7 +140,7 @@ static void picture2_display(int x1,int y1,int x2,int y2,OBJREC *o)
|
|||
|
||||
static void picture2(OBJREC *o)
|
||||
{
|
||||
o->runs[1]=picture2_display;
|
||||
o->call_draw=picture2_display;
|
||||
o->datasize=4;
|
||||
}
|
||||
|
||||
|
|
|
@ -176,9 +176,9 @@ void strlist_event(EVENT_MSG *msg,OBJREC *o)
|
|||
|
||||
void strlist(OBJREC *o)
|
||||
{
|
||||
o->runs[0]=strlist_init;
|
||||
o->runs[1]=strlist_draw;
|
||||
o->runs[2]=strlist_event;
|
||||
o->call_init=strlist_init;
|
||||
o->call_draw=strlist_draw;
|
||||
o->call_event=strlist_event;
|
||||
o->datasize=4;
|
||||
|
||||
}
|
||||
|
|
|
@ -1590,7 +1590,7 @@ void show_3dbox_draw(int x1,int y1,int x2,int y2,OBJREC *o)
|
|||
|
||||
void show_3dbox(OBJREC *o)
|
||||
{
|
||||
o->runs[1]=show_3dbox_draw;
|
||||
o->call_draw=show_3dbox_draw;
|
||||
}
|
||||
|
||||
void tma_fireball(TMULTI_ACTION *p)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue