Preparation for console
git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@103 ea6a568a-9f4f-0410-981a-c910a81bb256actorid
parent
714b724bf2
commit
1b01de4294
@ -0,0 +1,53 @@
|
||||
/*
|
||||
OpenMW - The completely unofficial reimplementation of Morrowind
|
||||
Copyright (C) 2008 Nicolay Korslund
|
||||
Email: < korslund@gmail.com >
|
||||
WWW: http://openmw.snaptoad.com/
|
||||
|
||||
This file (bindings.d) is part of the OpenMW package.
|
||||
|
||||
OpenMW is distributed as free software: you can redistribute it
|
||||
and/or modify it under the terms of the GNU General Public License
|
||||
version 3, as published by the Free Software Foundation.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
version 3 along with this program. If not, see
|
||||
http://www.gnu.org/licenses/ .
|
||||
|
||||
*/
|
||||
|
||||
module gui.bindings;
|
||||
|
||||
extern(C):
|
||||
|
||||
// GUI functions. Under development. The corresponding C++ functions
|
||||
// are in ogre/cpp_mygui.cpp
|
||||
|
||||
typedef void* WidgetPtr;
|
||||
void gui_setupGUI(int debugOut);
|
||||
void gui_toggleGui();
|
||||
void gui_setCellName(char *str);
|
||||
|
||||
// Get the widget type, as a string
|
||||
char *gui_widgetType(WidgetPtr);
|
||||
|
||||
// Get the height or width of a widget. If the argument is null,
|
||||
// return the size of the screen.
|
||||
int gui_getHeight(WidgetPtr);
|
||||
int gui_getWidth(WidgetPtr);
|
||||
|
||||
// Set various properties of a given widget
|
||||
void gui_setCaption(WidgetPtr, char*);
|
||||
void gui_setNeedMouseFocus(WidgetPtr, int);
|
||||
void gui_setTextColor(WidgetPtr, float,float,float);
|
||||
void gui_setCoord(WidgetPtr, int,int,int,int);
|
||||
|
||||
// Various ways to get or create widgets
|
||||
WidgetPtr gui_loadLayout(char *file, char *prefix, WidgetPtr parent);
|
||||
WidgetPtr gui_getChild(WidgetPtr, char*);
|
||||
WidgetPtr gui_createText(char *skin, int x, int y, int w, int h, char *layer);
|
@ -0,0 +1,31 @@
|
||||
/*
|
||||
OpenMW - The completely unofficial reimplementation of Morrowind
|
||||
Copyright (C) 2008 Nicolay Korslund
|
||||
Email: < korslund@gmail.com >
|
||||
WWW: http://openmw.snaptoad.com/
|
||||
|
||||
This file (console.mn) is part of the OpenMW package.
|
||||
|
||||
OpenMW is distributed as free software: you can redistribute it
|
||||
and/or modify it under the terms of the GNU General Public License
|
||||
version 3, as published by the Free Software Foundation.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
version 3 along with this program. If not, see
|
||||
http://www.gnu.org/licenses/ .
|
||||
|
||||
*/
|
||||
|
||||
class Console
|
||||
|
||||
|
||||
// This class contains all the functions available to the ingame
|
||||
// console.
|
||||
|
||||
import io;
|
||||
import game;
|
@ -0,0 +1,25 @@
|
||||
/*
|
||||
OpenMW - The completely unofficial reimplementation of Morrowind
|
||||
Copyright (C) 2008 Nicolay Korslund
|
||||
Email: < korslund@gmail.com >
|
||||
WWW: http://openmw.snaptoad.com/
|
||||
|
||||
This file (npc.mn) is part of the OpenMW package.
|
||||
|
||||
OpenMW is distributed as free software: you can redistribute it
|
||||
and/or modify it under the terms of the GNU General Public License
|
||||
version 3, as published by the Free Software Foundation.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
version 3 along with this program. If not, see
|
||||
http://www.gnu.org/licenses/ .
|
||||
|
||||
*/
|
||||
|
||||
class NPC : Person
|
||||
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
OpenMW - The completely unofficial reimplementation of Morrowind
|
||||
Copyright (C) 2008 Nicolay Korslund
|
||||
Email: < korslund@gmail.com >
|
||||
WWW: http://openmw.snaptoad.com/
|
||||
|
||||
This file (player.mn) is part of the OpenMW package.
|
||||
|
||||
OpenMW is distributed as free software: you can redistribute it
|
||||
and/or modify it under the terms of the GNU General Public License
|
||||
version 3, as published by the Free Software Foundation.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
version 3 along with this program. If not, see
|
||||
http://www.gnu.org/licenses/ .
|
||||
|
||||
*/
|
||||
|
||||
singleton player : Person
|
||||
|
||||
name="Player Name"
|
||||
level = 5 // Just an example value
|
Loading…
Reference in New Issue