コード例 #1
0
def show(items="mgk"):
    ids = []
    items = items.lower()

    _addItem("m", items, "Mask", ids)
    _addItem("g", items, "Gallow", ids)
    _addItem("r", items, "Report", ids)
    _addItem("k", items, "Keyboard", ids)

    redraw()
    _.dom().disableElements(ids)
コード例 #2
0
def discloseSecretWord(word):
    _showSecretWordTextBox()
    _.dom().setContent(_I_SECRET_WORD, word)
コード例 #3
0
def _showSecretWordTextBox():
    _.dom().disableElement("HideSecretWord")
コード例 #4
0
def confirm(text):
    return _.dom().confirm(text)
コード例 #5
0
def alert(text):
    _.dom().alert(text)
コード例 #6
0
def display(text):
    _.dom().setLayout(_I_OUTPUT, _createOutput(text))
コード例 #7
0
def drawBodyPart(part):
    _.dom().removeClass(part, "hidden")
コード例 #8
0
def redraw():
    _.dom().setLayout("", _.readBody(_FOLDER, getI18n()))
コード例 #9
0
def preBaseReset():
    suggestion = _.dom().getContent(
        _I_SECRET_WORD).strip()[:15] if _DISCLOSE_SECRET_WORD else ""
    redraw()

    return suggestion