23#include <gdk/gdkkeysyms.h>
94 if (tax +
sci +
lux != 100) {
118 if (tax +
sci +
lux != 100) {
272 Q_(
"?multiplier:Now"));
326 label =
gtk_label_new(
_(
"Changes will not take effect until next turn."));
421 for (
i = 0;
i <= 10;
i++) {
445 for (
i = 0;
i <= 10;
i++) {
469 for (
i = 0;
i <= 10;
i++) {
bool can_client_issue_orders(void)
int get_player_bonus(const struct player *pplayer, enum effect_type effect_type)
#define MAX_NUM_MULTIPLIERS
const char * government_name_for_player(const struct player *pplayer)
static void multipliers_command_callback(GtkWidget *w, gint response_id)
static gulong rates_sci_sig
static GtkWidget * rates_tax_scale
static gulong rates_tax_sig
static GtkWidget * rates_tax_toggle
static int rates_lux_value
static GtkWidget * multiplier_dialog_shell
static GtkWidget * rates_gov_label
static int rates_sci_value
static GtkWidget * rates_sci_label
static void rates_changed_callback(GtkWidget *range)
static GtkWidget * create_rates_dialog(void)
static GtkWidget * rates_sci_scale
static GtkWidget * rates_lux_scale
static GtkWidget * create_multiplier_dialog(void)
static gulong rates_lux_sig
void popup_multiplier_dialog(void)
static GtkWidget * rates_lux_label
static GtkWidget * rates_lux_toggle
void popup_rates_dialog(void)
static void rates_command_callback(GtkWidget *w, gint response_id)
static void rates_set_values(int tax, int no_tax_scroll, int lux, int no_lux_scroll, int sci, int no_sci_scroll)
static GtkWidget * rates_tax_label
static int rates_tax_value
void real_multipliers_dialog_update(void *unused)
static int scale_to_mult(const struct multiplier *pmul, int scale)
static int mult_to_scale(const struct multiplier *pmul, int val)
static GtkWidget * rates_sci_toggle
static GtkWidget * multipliers_scale[MAX_NUM_MULTIPLIERS]
static void multiplier_dialog_update_values(bool set_positions)
static GtkWidget * rates_dialog_shell
void setup_dialog(GtkWidget *shell, GtkWidget *parent)
static struct gui_dialog * shell
void widget_destroyed(GtkWidget *wdg, void *data)
#define fc_assert(condition)
Multiplier_type_id multiplier_count(void)
const char * multiplier_name_translation(const struct multiplier *pmul)
bool multiplier_can_be_changed(struct multiplier *pmul, struct player *pplayer)
Multiplier_type_id multiplier_index(const struct multiplier *pmul)
#define multipliers_iterate(_mul_)
#define multipliers_iterate_end
int dsend_packet_player_rates(struct connection *pc, int tax, int luxury, int science)
int send_packet_player_multiplier(struct connection *pc, const struct packet_player_multiplier *packet)
int player_multiplier_target_value(const struct player *pplayer, const struct multiplier *pmul)
int player_multiplier_value(const struct player *pplayer, const struct multiplier *pmul)
struct sprite int int int int struct sprite int int float scale
struct player_economic economic
int fc_snprintf(char *str, size_t n, const char *format,...)