forked from teamnwah/openmw-tes3coop
book & scroll windows
parent
c0e12d0e56
commit
0e6b82284f
@ -0,0 +1,15 @@
|
||||
#include "bookwindow.hpp"
|
||||
|
||||
using namespace MWGui;
|
||||
|
||||
BookWindow::BookWindow(WindowManager& parWindowManager) :
|
||||
WindowBase("openmw_book_layout.xml", parWindowManager)
|
||||
{
|
||||
//setVisible(false);
|
||||
center();
|
||||
}
|
||||
|
||||
void BookWindow::open(MWWorld::Ptr book)
|
||||
{
|
||||
}
|
||||
|
@ -0,0 +1,20 @@
|
||||
#ifndef MWGUI_BOOKWINDOW_H
|
||||
#define MWGUI_BOOKWINDOW_H
|
||||
|
||||
#include "window_base.hpp"
|
||||
|
||||
#include "../mwworld/ptr.hpp"
|
||||
|
||||
namespace MWGui
|
||||
{
|
||||
class BookWindow : public WindowBase
|
||||
{
|
||||
public:
|
||||
BookWindow(WindowManager& parWindowManager);
|
||||
void open(MWWorld::Ptr book);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -0,0 +1,14 @@
|
||||
#include "scrollwindow.hpp"
|
||||
|
||||
using namespace MWGui;
|
||||
|
||||
ScrollWindow::ScrollWindow(WindowManager& parWindowManager) :
|
||||
WindowBase("openmw_scroll_layout.xml", parWindowManager)
|
||||
{
|
||||
setVisible(false);
|
||||
center();
|
||||
}
|
||||
|
||||
void ScrollWindow::open(MWWorld::Ptr scroll)
|
||||
{
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
#ifndef MWGUI_SCROLLWINDOW_H
|
||||
#define MWGUI_SCROLLWINDOW_H
|
||||
|
||||
#include "window_base.hpp"
|
||||
|
||||
#include "../mwworld/ptr.hpp"
|
||||
|
||||
namespace MWGui
|
||||
{
|
||||
class ScrollWindow : public WindowBase
|
||||
{
|
||||
public:
|
||||
ScrollWindow(WindowManager& parWindowManager);
|
||||
void open(MWWorld::Ptr scroll);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<MyGUI type="Layout">
|
||||
|
||||
<Widget type="Window" skin="" layer="Windows" align="Left|Top" position="0 0 512 256" name="_Main">
|
||||
|
||||
<Widget type="ImageBox" skin="ImageBox" position_real="0 0 1 1" align="Top|Right" name="BookImage">
|
||||
<Property key="ImageTexture" value="textures\tx_menubook.dds"/>
|
||||
|
||||
<Widget type="Button" skin="Next_btn" position="251 220 128 32" name="NextPageBTN"/>
|
||||
<Widget type="Button" skin="Prev_btn" position="165 220 128 32" name="PrevPageBTN"/>
|
||||
<Widget type="Button" skin="Take_btn" position="75 220 128 32" name="TakeButton"/>
|
||||
<Widget type="Button" skin="Close_btn" position="360 220 128 32" name="CloseButton"/>
|
||||
|
||||
<Widget type="EditBox" skin="MW_BookPage" position_real="0.15 0.1 0.3 0.8" name = "LeftText"/>
|
||||
<Widget type="EditBox" skin="MW_BookPage" position_real="0.55 0.1 0.3 0.8" name = "RightText"/>
|
||||
</Widget>
|
||||
</Widget>
|
||||
|
||||
</MyGUI>
|
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<MyGUI type="Layout">
|
||||
|
||||
<Widget type="Window" skin="" layer="Windows" position="0 0 512 512" name="_Main">
|
||||
|
||||
<Widget type="ImageBox" skin="ImageBox" position_real="0 0 1 1" name="ScrollImage">
|
||||
<Property key="ImageTexture" value="textures\scroll.dds"/>
|
||||
|
||||
<Widget type="Button" skin="Take_btn" position="12 18 128 32" name="TakeButton"/>
|
||||
|
||||
<Widget type="Button" skin="Close_btn" position="418 24 128 32" name="CloseButton"/>
|
||||
</Widget>
|
||||
</Widget>
|
||||
|
||||
</MyGUI>
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<MyGUI type="Skin">
|
||||
<Skin name="Take_btn" size="128 32" texture="textures\tx_menubook_take_idle.dds">
|
||||
<BasisSkin type="MainSkin" offset="0 0 128 32" align="ALIGN_VSTRETCH">
|
||||
<State name="normal" offset="0 0 128 32"/>
|
||||
</BasisSkin>
|
||||
</Skin>
|
||||
|
||||
<Skin name="Close_btn" size="128 32" texture="textures\tx_menubook_close_idle.dds">
|
||||
<BasisSkin type="MainSkin" offset="0 0 128 32" align="ALIGN_VSTRETCH">
|
||||
<State name="normal" offset="0 0 128 32"/>
|
||||
</BasisSkin>
|
||||
</Skin>
|
||||
</MyGUI>
|
Loading…
Reference in New Issue