Mercurial > otakunoraifu
comparison scn2k/scn2k_text.cc @ 38:658272d883ed
* Support (more or less) button style selects (fuuko's ones)
* Strip text objects from strings (may support object text objects later)
author | thib |
---|---|
date | Tue, 17 Mar 2009 20:35:08 +0000 |
parents | 4d7486cb20a9 |
children | de29c4d2d043 |
comparison
equal
deleted
inserted
replaced
37:f88d47a4bf87 | 38:658272d883ed |
---|---|
666 | 666 |
667 void TextImpl::CreateSelect(Cmd& cmd) { | 667 void TextImpl::CreateSelect(Cmd& cmd) { |
668 char key[1024]; | 668 char key[1024]; |
669 sprintf(key, "#WINDOW.%03d.SELCOM_USE",text_window_number); | 669 sprintf(key, "#WINDOW.%03d.SELCOM_USE",text_window_number); |
670 int sel_type = 0; | 670 int sel_type = 0; |
671 config.GetParam(key, 1, &sel_type); | 671 if (cmd.cmd3 == 1) config.GetParam(key, 1, &sel_type); |
672 else if (cmd.cmd3 == 3) sel_type = 0; | |
672 | 673 |
673 int sel_size = cmd.args.size() / 2; | 674 int sel_size = cmd.args.size() / 2; |
674 int i; | 675 int i; |
675 // cur_backlog_item に次にbacklogに入るべき内容を作成 | 676 // cur_backlog_item に次にbacklogに入るべき内容を作成 |
676 // CreateSelect() 後、SAVEPOINT なので現在のbacklogの内容(前のメッセージ)が | 677 // CreateSelect() 後、SAVEPOINT なので現在のbacklogの内容(前のメッセージ)が |