mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
keys play and playpause added for lua
Origin commit data
------------------
Branch: ni/coolstream
Commit: 72071d4505
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2021-02-07 (Sun, 07 Feb 2021)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -92,6 +92,8 @@ int CLuaInstCCWindow::CCWindowNew(lua_State *L)
|
||||
std::string btn7 = "";
|
||||
std::string btn8 = "";
|
||||
std::string btn9 = "";
|
||||
std::string btnPlay = "";
|
||||
std::string btnPlayPause = "";
|
||||
lua_Integer x = 100, y = 100, dx = 450, dy = 250;
|
||||
tableLookup(L, "x", x);
|
||||
tableLookup(L, "y", y);
|
||||
@@ -126,6 +128,8 @@ int CLuaInstCCWindow::CCWindowNew(lua_State *L)
|
||||
tableLookup(L, "btn7", btn7);
|
||||
tableLookup(L, "btn8", btn8);
|
||||
tableLookup(L, "btn9", btn9);
|
||||
tableLookup(L, "btnPlay", btnPlay);
|
||||
tableLookup(L, "btnPlayPause", btnPlayPause);
|
||||
color_frame = checkMagicMask(color_frame);
|
||||
color_body = checkMagicMask(color_body);
|
||||
color_shadow = checkMagicMask(color_shadow);
|
||||
@@ -245,6 +249,18 @@ int CLuaInstCCWindow::CCWindowNew(lua_State *L)
|
||||
btnS9.text = btn9;
|
||||
buttons.push_back(btnS9);
|
||||
}
|
||||
if (!btnPlay.empty()) {
|
||||
button_label_cc btnSPlay;
|
||||
btnSPlay.button = NEUTRINO_ICON_BUTTON_PLAY;
|
||||
btnSPlay.text = btnPlay;
|
||||
buttons.push_back(btnSPlay);
|
||||
}
|
||||
if (!btnPlayPause.empty()) {
|
||||
button_label_cc btnSPlayPause;
|
||||
btnSPlayPause.button = NEUTRINO_ICON_BUTTON_PLAY;
|
||||
btnSPlayPause.text = btnPlayPause;
|
||||
buttons.push_back(btnSPlayPause);
|
||||
}
|
||||
if (!buttons.empty())
|
||||
footer->setButtonLabels(buttons, footer->getWidth(), footer->getWidth() / buttons.size());
|
||||
}
|
||||
|
@@ -120,6 +120,7 @@ static void set_lua_variables(lua_State *L)
|
||||
{ "sat2", CRCInput::RC_sat2 },
|
||||
{ "record", CRCInput::RC_record },
|
||||
{ "play", CRCInput::RC_play },
|
||||
{ "playpause", CRCInput::RC_playpause },
|
||||
{ "pause", CRCInput::RC_pause },
|
||||
{ "forward", CRCInput::RC_forward },
|
||||
{ "rewind", CRCInput::RC_rewind },
|
||||
|
Reference in New Issue
Block a user