Games-Axmud
view release on metacpan or search on metacpan
lib/Games/Axmud/Cmd.pm view on Meta::CPAN
}
# ;tir
if (! defined $switch) {
if (! $axmud::CLIENT->irreversibleIconFlag) {
$axmud::CLIENT->set_irreversibleIconFlag(TRUE);
$string = 'ON';
} else {
$axmud::CLIENT->set_irreversibleIconFlag(FALSE);
$string = 'OFF';
}
return $self->complete(
$session, $standardCmd,
'Irreversible icons in \'edit\' windows turned ' . $string,
);
# ;tir -t
} else {
# Show a window containing a button that uses the irreversible icon, regardless of
# whether GA::Client->irreversibleIconFlag is set, or not
$session->mainWin->showIrreversibleTest();
return $self->complete($session, $standardCmd, 'Irreversible icon test completed');
}
}
}
{ package Games::Axmud::Cmd::TogglePopup;
use strict;
use warnings;
# use diagnostics;
use Glib qw(TRUE FALSE);
our @ISA = qw(Games::Axmud::Generic::Cmd Games::Axmud);
##################
# Constructors
sub new {
# Create a new instance of this command object (there should only be one)
#
# Expected arguments
# (none besides $class)
#
# Return values
# 'undef' if GA::Generic::Cmd->new reports an error
# Blessed reference to the new object on success
my ($class, $check) = @_;
# Setup
my $self = Games::Axmud::Generic::Cmd->new('togglepopup', TRUE, FALSE);
if (! $self) {return undef}
$self->{defaultUserCmdList} = ['tpp', 'togglepop', 'togglepopup'];
$self->{userCmdList} = \@{$self->{defaultUserCmdList}};
$self->{descrip} = 'Toggles popup windows';
# Bless the object into existence
bless $self, $class;
return $self;
}
##################
# Methods
sub do {
my (
$self, $session, $inputString, $userCmd, $standardCmd,
$check,
) = @_;
# Local variables
my $string;
# Check for improper arguments
if (defined $check) {
return $self->improper($session, $inputString);
}
if (! $axmud::CLIENT->allowBusyWinFlag) {
$axmud::CLIENT->set_allowBusyWinFlag(TRUE);
$string = 'ON';
} else {
$axmud::CLIENT->set_allowBusyWinFlag(FALSE);
$string = 'OFF';
}
return $self->complete(
$session, $standardCmd,
'Popup windows turned ' . $string,
);
}
}
{ package Games::Axmud::Cmd::ToggleShortLink;
use strict;
use warnings;
# use diagnostics;
use Glib qw(TRUE FALSE);
our @ISA = qw(Games::Axmud::Generic::Cmd Games::Axmud);
##################
# Constructors
sub new {
# Create a new instance of this command object (there should only be one)
#
( run in 1.894 second using v1.01-cache-2.11-cpan-364913b4093 )