JubeatPlus 3.9.11
Loading...
Searching...
No Matches
CampaignItemDetailView.h File Reference

The store campaign item-detail card. More...

import <UIKit/UIKit.h>
import "AlertViewManager.h"
import "Downloader.h"
Include dependency graph for CampaignItemDetailView.h:

Go to the source code of this file.

Classes

class  CampaignItemDetailView
 A campaign item's detail card. More...

Enumerations

enum  CampaignItemDetailButtonType : int {
  CampaignItemDetailButtonTypeDownload = 0 , CampaignItemDetailButtonTypeDownloaded = 1 , CampaignItemDetailButtonTypeLocked = 2 , CampaignItemDetailButtonTypeSerial = 3 ,
  CampaignItemDetailButtonTypeUpdate = 4
}
 Which artwork and title the download button should carry. More...
enum  CampaignItemSampleState : int { CampaignItemSampleStatePlaying = 0 , CampaignItemSampleStateDownloading = 1 , CampaignItemSampleStateStopped = -1 }
 The sample-tune playback state. More...

Detailed Description

The store campaign item-detail card.

Reconstructed from Ghidra program Jubeat (class CampaignItemDetailView, image base 0x100000000). All

Ghidra address:
values are offsets relative to that image base.

The superclass is UIView, from the chain-up in -initWithFrame: at 0x171ec4.

The card shows one campaign item's icon, name, explanation, unlock terms, and copyright; it offers a download/purchase button and an external-link button, and it can play a sample tune. It acts as a DownloaderDelegate for both its info fetch and its sample fetch, and as an AlertViewManagerDelegate for the network-error alerts it raises.

Enumeration Type Documentation

◆ CampaignItemDetailButtonType

Which artwork and title the download button should carry.

The value is CampaignItemInfo.buttonType, mapped by -getButtonColor: and -getButtonName: to a fill colour and a title.

Enumerator
CampaignItemDetailButtonTypeDownload 

A blue "download" button.

CampaignItemDetailButtonTypeDownloaded 

A near-white "downloaded" button, disabled.

CampaignItemDetailButtonTypeLocked 

A near-white button titled "download".

CampaignItemDetailButtonTypeSerial 

A blue "serial input" button.

CampaignItemDetailButtonTypeUpdate 

A green "update" button.

◆ CampaignItemSampleState

The sample-tune playback state.

Held in the samplePlaying ivar, which encodes as i (a 4-byte int). The binary only ever writes Stopped and Downloading to the ivar; Playing exists as the -samplePlaying artwork state rather than a value stored in the ivar.

Enumerator
CampaignItemSampleStatePlaying 

The sample tune is playing.

CampaignItemSampleStateDownloading 

The sample tune is downloading.

CampaignItemSampleStateStopped 

No sample tune is active.