Exemplo n.º 1
0
/*
 * InventoryBoxDestroy:  Destroy the inventory list box.
 */
void InventoryBoxDestroy(void)
{
    DestroyWindow(hwndInv);
    DestroyWindow(hwndInvDialog);
    DestroyWindow(hwndInvScroll);

    InventoryResetData();

//	DeleteObject( hbmpScrollBack );
    DeleteObject( hbrushScrollBack );
}
Exemplo n.º 2
0
void InterfaceResetData(void)
{
   if (pinfo.resting)
      RequestRest();
   else
      RequestStand();
   if (cinfo->config->aggressive)
      SendSafety(0);
   else
      SendSafety(1);

   RequestSpells();
   RequestSkills();
   RequestStatGroups();   
   InventoryResetData();
   EnchantmentsResetData();
   GuildResetData();
}
Exemplo n.º 3
0
void DisplayInventory(list_type inventory)
{
    list_type l;

    WindowBeginUpdate(hwndInv);

    num_items = 0;

    InventoryResetData();

    cursor_row = 0;
    cursor_col = 0;

    for (l = inventory; l != NULL; l = l->next)
    {
        object_node *inv_object = (object_node *) (l->data);
        InventoryAddItem(inv_object);
    }

    InventoryScrollRange();
    if (num_items > rows * cols)
        InventoryDisplayScrollbar();
    WindowEndUpdate(hwndInv);
}