mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
+ Got rid of zip lib requirement in G3D...
Still can re-enable code by defining _HAVE_ZIP...
+ Remove silly X11 lib dependency from G3D
Code doesn't seem to do anything yet anyway, and even if, we don't want it :p
+ Fix another weird G3D build problem...
+ Remove some __asm usage in g3d, which is not available on Win64
My editor also decided to remove a ton of trailing white spaces...tss...
+ Reapply G3D fixes for 64bit VC
+ not use SSE specific header when SSE not enabled in *nix
+ Updated project files
+ New vmap_assembler VC90/VC80 Project
+ vmap assembler binaries updates
NOTE: Old vmap fikes expected work (as tests show) with new library version.
But better use new generated versions. Its different in small parts to bad or good...
(based on Lynx3d's repo commit 44798d3)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
67 lines
1.6 KiB
C++
67 lines
1.6 KiB
C++
/**
|
|
@file prompt.h
|
|
|
|
@maintainer Morgan McGuire, http://graphics.cs.williams.edu
|
|
@cite Windows GUI code by Max McGuire
|
|
|
|
@created 2001-08-26
|
|
@edited 2006-08-13
|
|
*/
|
|
|
|
#ifndef G3D_PROMPT_H
|
|
#define G3D_PROMPT_H
|
|
|
|
#include "platform.h"
|
|
#include <string>
|
|
|
|
namespace G3D {
|
|
|
|
/**
|
|
Prints a prompt to stdout and waits for user input. The return value is
|
|
the number of the user's choice (the first is 0, if there are no
|
|
choices, returns 0).
|
|
|
|
@param useGui Under Win32, use a GUI, not stdout prompt.
|
|
@param windowTitle The title for the prompt window
|
|
@param promptx The text string to prompt the user with
|
|
@param choice An array of strings that are the choices the user may make
|
|
@param numChoices The length of choice.
|
|
|
|
@cite Windows dialog interface by Max McGuire, mmcguire@ironlore.com
|
|
@cite Font setting code by Kurt Miller, kurt@flipcode.com
|
|
*/
|
|
int prompt(
|
|
const char* windowTitle,
|
|
const char* promptx,
|
|
const char** choice,
|
|
int numChoices,
|
|
bool useGui);
|
|
|
|
/**
|
|
Prints a prompt and waits for user input. The return value is
|
|
the number of the user's choice (the first is 0, if there are no
|
|
choices, returns 0).
|
|
<P>Uses GUI under Win32, stdout prompt otherwise.
|
|
*/
|
|
inline int prompt(
|
|
const char* windowTitle,
|
|
const char* promptx,
|
|
const char** choice,
|
|
int numChoices) {
|
|
|
|
return prompt(windowTitle, promptx, choice, numChoices, true);
|
|
}
|
|
|
|
|
|
/**
|
|
Displays a GUI prompt with "Ok" as the only choice.
|
|
*/
|
|
void msgBox(
|
|
const std::string& message,
|
|
const std::string& title = "Message");
|
|
|
|
|
|
}; // namespace
|
|
|
|
#endif
|
|
|