Crossfire Server, Trunk
CRESettingsDialog.cpp
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2022 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #include "CRESettingsDialog.h"
14 #include "CRESettings.h"
15 #include <QtWidgets>
16 
18 {
19  setWindowTitle(tr("CRE settings"));
20 
21  QGridLayout* layout = new QGridLayout();
22 
23  int line = 0;
24 
25  layout->addWidget(new QLabel(tr("Cache directory:"), this), line, 0);
26  myMapCache = new QLineEdit(this);
27  myMapCache->setText(settings->mapCacheDirectory());
28  if (myMapCache->text().isEmpty())
29  myMapCache->setText(QStandardPaths::standardLocations(QStandardPaths::DataLocation)[0]);
30  layout->addWidget(myMapCache, line, 1);
31 
32  line++;
33 
34  layout->addWidget(new QLabel(tr("This directory is used to store information between program runs.\nIt should be persistent (don't put in a temporary directory cleaned now and then),\nbut data can be recreated if needed."), this), line, 0, 1, 2);
35  line++;
36 
37  QDialogButtonBox* buttons = new QDialogButtonBox(QDialogButtonBox::Save | QDialogButtonBox::Cancel, Qt::Horizontal, this);
38  connect(buttons, SIGNAL(accepted()), this, SLOT(accept()));
39  connect(buttons, SIGNAL(rejected()), this, SLOT(reject()));
40  layout->addWidget(buttons, line, 0, 1, 2);
41 
42  setLayout(layout);
43 }
44 
46 {
47  return myMapCache->text();
48 }
line
Install Bug reporting Credits so make sure you have version or later There are files involved in the automatic convert convertall and filelist py GuildList has the list of guilds for the server GuildLocations is what is used by the install script for setting up the maps It has columns in the first is the name of the no spaces The second is the region of the the third is the destination folder for the the fourth is the exit the fifth and sixth are the x and y coords within the exit the seventh eighth and ninth are the exit location for the storage hall If field seven is then it uses the same exit map as for the guild hall itself filelist py has a list of which files to process for each guild hall convert py takes all the files in filelist py and customises them to the specific guild then outputs them into a in the same order that they are listed in GuildLocations convertall py reads the lines from GuildLocations and runs line by line
Definition: README.txt:12
settings
struct Settings settings
Definition: init.cpp:139
layout
Definition: main.cpp:84
CRESettingsDialog::CRESettingsDialog
CRESettingsDialog(CRESettings *settings)
Definition: CRESettingsDialog.cpp:17
CRESettings.h
CRESettingsDialog::mapCache
QString mapCache() const
Definition: CRESettingsDialog.cpp:45
buttons
TIPS on SURVIVING Crossfire is populated with a wealth of different monsters These monsters can have varying immunities and attack types In some of them can be quite a bit smarter than others It will be important for new players to learn the abilities of different monsters and learn just how much it will take to kill them This section discusses how monsters can interact with players Most monsters in the game are out to mindlessly kill and destroy the players These monsters will help boost a player s after he kills them When fighting a large amount of monsters in a single attempt to find a narrower hallway so that you are not being attacked from all sides Charging into a room full of Beholders for instance would not be open the door and fight them one at a time For there are several maps designed for them Find these areas and clear them out All throughout these a player can find signs and books which they can read by stepping onto them and hitting A to apply the book sign These messages will help the player to learn the system One more always keep an eye on your food If your food drops to your character will soon so BE CAREFUL ! NPCs Non Player Character are special monsters which have intelligence Players may be able to interact with these monsters to help solve puzzles and find items of interest To speak with a monster you suspect to be a simply move to an adjacent square to them and push the double ie Enter your and press< Return > You can also use say if you feel like typing a little extra Other NPCs may not speak to but display intelligence with their movement Some monsters can be and may attack the nearest of your enemies Others can be in that they follow you around and help you in your quest to kill enemies and find treasure SPECIAL ITEMS There are many special items which can be found in of these the most important may be the signs all a player must do is apply the handle In the case of buttons
Definition: survival-guide.txt:57
CRESettings
Definition: CRESettings.h:21
CRESettingsDialog::myMapCache
QLineEdit * myMapCache
Definition: CRESettingsDialog.h:30
connect
Definition: connect.py:1
altar_valkyrie.accept
def accept(description)
Definition: altar_valkyrie.py:22
CRESettingsDialog.h