public function __construct($rows = 0, $cols = 0, $y = 0, $x = 0) { parent::__construct($rows, $cols, $y, $x); $this->panel = ncurses_new_panel($this->getWindow()); $rows = $this->getMaxY(); $cols = $this->getMaxX(); $this->addText(["R: {$rows}, C:{$cols}", "x:{$x}, y: {$y}"]); }
public function __construct($CraftingRepository) { parent::__construct(); $this->WindowAreas = [new CraftingWindowArea($CraftingRepository, self::craftingOutputIndex), new ArmorWindowArea(self::armorIndex), new WindowArea(self::mainIndex, 27, 9, 3), new WindowArea(self::hotbarIndex, 9, 9, 1)]; }
public function __construct(Window $parent, $rows = 0, $cols = 0, $y = 0, $x = 0) { $this->parent = $parent; parent::__construct($rows, $cols, $y, $x); }
/** * Create window * * @param int $rows * @param int $cols * @param int $y * @param int $x * @return Window */ public function __construct($rows = 0, $cols = 0, $y = 0, $x = 0) { ncurses_init(); parent::__construct($rows = 0, $cols = 0, $y = 0, $x = 0); }