mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-05 02:15:36 +00:00
Console improvements: Show scrollbar, allow copying text from the history
This commit is contained in:
parent
710a1e2f37
commit
1b96c5d266
5 changed files with 8 additions and 40 deletions
|
@ -119,8 +119,6 @@ namespace MWGui
|
|||
|
||||
// Set up the log window
|
||||
mHistory->setOverflowToTheLeft(true);
|
||||
mHistory->setEditStatic(true);
|
||||
mHistory->setVisibleVScroll(true);
|
||||
|
||||
// compiler
|
||||
Compiler::registerExtensions (mExtensions, mConsoleOnlyScripts);
|
||||
|
|
|
@ -497,6 +497,9 @@ namespace MWInput
|
|||
edit->deleteTextSelection();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (edit && !edit->getEditStatic())
|
||||
{
|
||||
if (arg.keysym.sym == SDLK_c && (arg.keysym.mod & SDL_Keymod(KMOD_CTRL)))
|
||||
{
|
||||
std::string text = edit->getTextSelection();
|
||||
|
|
|
@ -7,9 +7,12 @@
|
|||
<Property key="Visible" value="false"/>
|
||||
|
||||
<!-- Log window -->
|
||||
<Widget type="EditBox" skin="MW_ConsoleLog" position="5 5 380 328" align="Stretch" name="list_History">
|
||||
<Widget type="EditBox" skin="MW_TextBoxEdit" position="5 5 380 328" align="Stretch" name="list_History">
|
||||
<Property key="MultiLine" value="1"/>
|
||||
<Property key="ReadOnly" value="true"/>
|
||||
<Property key="FontName" value="MonoFont"/>
|
||||
<Property key="TextAlign" value="Left Top"/>
|
||||
<Property key="TextColour" value="1 1 1"/>
|
||||
</Widget>
|
||||
|
||||
<!-- Command line -->
|
||||
|
|
|
@ -2,19 +2,6 @@
|
|||
|
||||
<MyGUI type="Skin">
|
||||
|
||||
<!-- Console Output -->
|
||||
|
||||
<Skin name="MW_LogClient" size="10 10">
|
||||
<Property key="FontName" value="MonoFont"/>
|
||||
<Property key="TextAlign" value="Left Top"/>
|
||||
<Property key="TextColour" value="1 1 1"/>
|
||||
<BasisSkin type="EditText" offset="0 0 10 10" align="Stretch"/>
|
||||
</Skin>
|
||||
|
||||
<Skin name="MW_ConsoleLog" size="0 0 50 50">
|
||||
<Property key="WordWrap" value="true"/>
|
||||
<Child type="TextBox" skin="MW_LogClient" offset="0 0 35 10" align="Stretch" name="Client"/>
|
||||
</Skin>
|
||||
|
||||
<!-- Console Input -->
|
||||
|
||||
|
|
|
@ -1,31 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<MyGUI type="Resource" version="1.1">
|
||||
<Resource type="ResourceTrueTypeFont" name="EB Garamond">
|
||||
<Property key="Source" value="EBGaramond-Regular.ttf"/>
|
||||
<Property key="Size" value="16"/>
|
||||
<Property key="Resolution" value="72"/>
|
||||
<Property key="Antialias" value="false"/>
|
||||
<Property key="TabWidth" value="8"/>
|
||||
<Property key="OffsetHeight" value="0"/>
|
||||
<Codes>
|
||||
<Code range="33 126"/>
|
||||
<Code range="160"/> <!-- Non-breaking space -->
|
||||
<Code range="192 382"/> <!-- Central and Eastern European languages glyphs -->
|
||||
<Code range="1025 1105"/>
|
||||
<Code range="2026"/> <!-- Ellipsis -->
|
||||
<Code range="8470"/>
|
||||
<Code range="8211"/> <!-- Minus -->
|
||||
<Code range="8216 8217"/> <!-- Single quotes -->
|
||||
<Code range="8220 8221"/> <!-- Right and Left Double Quotation mark -->
|
||||
<Code hide="128"/>
|
||||
<Code hide="1026 1039"/>
|
||||
<Code hide="1104"/>
|
||||
</Codes>
|
||||
</Resource>
|
||||
|
||||
<Resource type="ResourceTrueTypeFont" name="MonoFont">
|
||||
<Property key="Source" value="DejaVuLGCSansMono.ttf"/>
|
||||
<Property key="Size" value="18"/>
|
||||
<Property key="Size" value="17"/>
|
||||
<Property key="Resolution" value="50"/>
|
||||
<Property key="Antialias" value="false"/>
|
||||
<Property key="TabWidth" value="8"/>
|
||||
|
|
Loading…
Reference in a new issue