mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
Merge branch 'relay_proxy' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into relay_proxy
This commit is contained in:
commit
d04a5870af
8 changed files with 32 additions and 20 deletions
|
@ -84,7 +84,8 @@ static XP_S16 ce_send_proc( const XP_U8* buf, XP_U16 len,
|
|||
void* closure );
|
||||
static void ce_relay_status( void* closure,
|
||||
CommsRelayState newState );
|
||||
static void ce_relay_connd( void* closure, XP_Bool allHere,
|
||||
static void ce_relay_connd( void* closure, XP_UCHAR* const room,
|
||||
XP_U16 devOrder, XP_Bool allHere,
|
||||
XP_U16 nMissing );
|
||||
static void ce_relay_error( void* closure, XWREASON relayErr );
|
||||
|
||||
|
@ -1569,7 +1570,7 @@ ceSetDictName( const wchar_t* XP_UNUSED(wPath), XP_U16 XP_UNUSED_DBG(index),
|
|||
} /* ceSetDictName */
|
||||
|
||||
static XP_Bool
|
||||
ceHandleHintRequest( CEAppGlobals* globals )
|
||||
ceHandleHintRequest( CEAppGlobals* globals, int wmId )
|
||||
{
|
||||
XP_Bool notDone;
|
||||
XP_Bool draw;
|
||||
|
@ -1579,10 +1580,10 @@ ceHandleHintRequest( CEAppGlobals* globals )
|
|||
#ifdef XWFEATURE_SEARCHLIMIT
|
||||
globals->askTrayLimits,
|
||||
#endif
|
||||
¬Done );
|
||||
wmId == ID_MOVE_PREVHINT, ¬Done );
|
||||
globals->hintPending = notDone;
|
||||
if ( draw ) { /* don't turn on if disallowed */
|
||||
ceSetLeftSoftkey( globals, ID_MOVE_NEXTHINT );
|
||||
ceSetLeftSoftkey( globals, wmId );
|
||||
}
|
||||
return draw;
|
||||
} /* ceHandleHintRequest */
|
||||
|
@ -2640,7 +2641,8 @@ WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
board_resetEngine( globals->game.board );
|
||||
/* fallthru */
|
||||
case ID_MOVE_NEXTHINT:
|
||||
draw = ceHandleHintRequest( globals );
|
||||
case ID_MOVE_PREVHINT:
|
||||
draw = ceHandleHintRequest( globals, wmId );
|
||||
break;
|
||||
|
||||
case ID_FILE_EXIT:
|
||||
|
@ -3179,7 +3181,10 @@ ce_relay_status( void* closure, CommsRelayState newState )
|
|||
}
|
||||
|
||||
static void
|
||||
ce_relay_connd( void* closure, XP_Bool allHere, XP_U16 nMissing )
|
||||
ce_relay_connd( void* closure, XP_UCHAR* const XP_UNUSED(room),
|
||||
XP_U16 XP_UNUSED(devOrder), /* 1 means created room, etc. */
|
||||
XP_Bool allHere,
|
||||
XP_U16 nMissing )
|
||||
{
|
||||
CEAppGlobals* globals = (CEAppGlobals*)closure;
|
||||
XP_U16 strID = 0;
|
||||
|
|
|
@ -83,6 +83,7 @@ BEGIN
|
|||
POPUP "HINT" // <- translate
|
||||
BEGIN
|
||||
MENUITEM "NEXT HINT", ID_MOVE_NEXTHINT // <- translate
|
||||
MENUITEM "Previous hint", ID_MOVE_PREVHINT
|
||||
MENUITEM "HINT", ID_MOVE_HINT // <- translate
|
||||
#ifdef XWFEATURE_SEARCHLIMIT
|
||||
MENUITEM "LIMITED HINT...", ID_MOVE_LIMITEDHINT // <- translate
|
||||
|
|
|
@ -83,6 +83,7 @@ BEGIN
|
|||
POPUP "Pista"
|
||||
BEGIN
|
||||
MENUITEM "Pista següent", ID_MOVE_NEXTHINT
|
||||
MENUITEM "Previous hint", ID_MOVE_PREVHINT
|
||||
MENUITEM "Pista", ID_MOVE_HINT
|
||||
#ifdef XWFEATURE_SEARCHLIMIT
|
||||
MENUITEM "Límits de pistes...", ID_MOVE_LIMITEDHINT
|
||||
|
|
|
@ -83,6 +83,7 @@ BEGIN
|
|||
POPUP "Nápověda"
|
||||
BEGIN
|
||||
MENUITEM "Další nápověda", ID_MOVE_NEXTHINT
|
||||
MENUITEM "Previous hint", ID_MOVE_PREVHINT
|
||||
MENUITEM "Nápověda", ID_MOVE_HINT
|
||||
#ifdef XWFEATURE_SEARCHLIMIT
|
||||
MENUITEM "Omezená nápověda...", ID_MOVE_LIMITEDHINT
|
||||
|
|
|
@ -83,6 +83,7 @@ BEGIN
|
|||
POPUP "Hint"
|
||||
BEGIN
|
||||
MENUITEM "Next hint", ID_MOVE_NEXTHINT
|
||||
MENUITEM "Previous hint", ID_MOVE_PREVHINT
|
||||
MENUITEM "Hint", ID_MOVE_HINT
|
||||
#ifdef XWFEATURE_SEARCHLIMIT
|
||||
MENUITEM "Limited hint...", ID_MOVE_LIMITEDHINT
|
||||
|
|
|
@ -83,6 +83,7 @@ BEGIN
|
|||
POPUP "Conseil"
|
||||
BEGIN
|
||||
MENUITEM "Conseil suivant", ID_MOVE_NEXTHINT
|
||||
MENUITEM "Previous hint", ID_MOVE_PREVHINT
|
||||
MENUITEM "Conseil", ID_MOVE_HINT
|
||||
#ifdef XWFEATURE_SEARCHLIMIT
|
||||
MENUITEM "Conseil limité...", ID_MOVE_LIMITEDHINT
|
||||
|
|
|
@ -83,6 +83,7 @@ BEGIN
|
|||
POPUP "Podpowiedź"
|
||||
BEGIN
|
||||
MENUITEM "Następna podp.", ID_MOVE_NEXTHINT
|
||||
MENUITEM "Previous hint", ID_MOVE_PREVHINT
|
||||
MENUITEM "Podpowiedź", ID_MOVE_HINT
|
||||
#ifdef XWFEATURE_SEARCHLIMIT
|
||||
MENUITEM "Podp. ograniczona...", ID_MOVE_LIMITEDHINT
|
||||
|
|
|
@ -244,20 +244,21 @@
|
|||
# define ID_MOVE_LIMITEDHINT 40011
|
||||
#endif
|
||||
#define ID_MOVE_NEXTHINT 40012
|
||||
#define ID_MOVE_UNDOCURRENT 40013
|
||||
#define ID_MOVE_UNDOLAST 40014
|
||||
#define ID_MOVE_TRADE 40015
|
||||
#define ID_MOVE_JUGGLE 40016
|
||||
#define ID_MOVE_HIDETRAY 40017
|
||||
#define ID_MOVE_TURNDONE 40018
|
||||
#define ID_MOVE_FLIP 40019
|
||||
#define ID_MOVE_VALUES 40027
|
||||
#define ID_FILE_NEWGAME 40020
|
||||
#define ID_FILE_SAVEDGAMES 40021
|
||||
#define ID_EDITTEXT 40022
|
||||
#define ID_FILE_PREFERENCES 40023
|
||||
#define ID_GAME_RESENDMSGS 40025
|
||||
#define ID_FILE_FULLSCREEN 40026
|
||||
#define ID_MOVE_PREVHINT 40013
|
||||
#define ID_MOVE_UNDOCURRENT 40014
|
||||
#define ID_MOVE_UNDOLAST 40015
|
||||
#define ID_MOVE_TRADE 40016
|
||||
#define ID_MOVE_JUGGLE 40017
|
||||
#define ID_MOVE_HIDETRAY 40018
|
||||
#define ID_MOVE_TURNDONE 40019
|
||||
#define ID_MOVE_FLIP 40020
|
||||
#define ID_MOVE_VALUES 40021
|
||||
#define ID_FILE_NEWGAME 40022
|
||||
#define ID_FILE_SAVEDGAMES 40023
|
||||
#define ID_EDITTEXT 40024
|
||||
#define ID_FILE_PREFERENCES 40025
|
||||
#define ID_GAME_RESENDMSGS 40026
|
||||
#define ID_FILE_FULLSCREEN 40027
|
||||
|
||||
#define ID_INITIAL_SOFTID ID_MOVE_TURNDONE
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue